[Developers] help - MQL to query by type and get all types
John Merrells
john at merrells.com
Wed Mar 18 19:38:54 UTC 2009
On Mar 18, 2009, at 12:33 PM, Christopher R. Maden wrote:
> John Merrells wrote:
>> But that doesn't work, as 'type' can only appear once. I can't work
>> out
>> the syntax to express this query :-( Any help much appreciated :-)
>
> JSON imposes the restriction that each key can only appear once. In
> MQL, the work-around for that is that arbitrary colon-separated
> prefixes
> are allowed; try this instead:
>
>
> [{
> "id" : null,
> "name" : null,
> "type" : "/music/artist"
> "all:type" : []
> }]
Ah, thanks. I see it on the 'mql cheatsheet' now. It shows 'inc:', but
I now understand that any prefix would work.
John
--
John Merrells
http://www.johnmerrells.com
+1.415.244.5808
More information about the Developers
mailing list