[Developers] duplicate results when using an optional clause?
Tom Gordon
tomgordon at mac.com
Thu Nov 8 18:16:14 UTC 2007
I'm querying for musical genres with this query:
[{
"type": "/music/genre",
"limit": 100,
"id":null,
"guid":null,
"name":null,
"key":[],
"timestamp":null,
"permission":[],
"creator":[],
"attribution":[],
"parent_genre": [{
"id": null,
"optional": true
}]
}]
If I don't specify "id" for the parent_genre, I get the name instead,
which is may not be unique (it may be for this specific type, but you
get the idea).
If I don't specify the "optional", then I only get genres that have a
parent.
If I do specify the "optional", I seem to be getting duplicates in
the results. It looks to me like any genre that does have a parent
is being sent twice.
Is this a bug or should I be doing something differently? It's not a
gigantic thing but I have other queries and would like to know what's
going on here.
Oh yeah, also the cursor is looping back today - I never get "false",
but I do get repeats (it just loops forever).
Thanks!
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20071108/352bbe37/attachment.htm
More information about the Developers
mailing list