[Developers] Expanded "id": { ... } clauses in MQL

Tyler Pirtle tyler at metaweb.com
Mon Nov 2 23:02:21 UTC 2009


>
> For that maybe you want:
>
> [{
>   "id":     null,
>   "a:id!=": "/lang/en",
>   "b:id!=": "/lang/fr",
>   "id|=": [
>     "/lang/en",
>     "/lang/hr"
>   ]
> }]
>
> returns:
>   [{
>     "id": "/lang/hr"
>   }]
>

Phil,

Did this query work out for you? I realize it's not optimal, you'll have to
list out each id prefixed with _:id!=, but does it get the job done?

There is a fix coming for this, but it's in a major revision of MQL thats
soon to be released. Let me know if you're still stuck and we'll figure
it out.



Tyler



More information about the Developers mailing list