[Developers] Query Multiple Types?

John Giannandrea jg at metaweb.com
Wed Mar 14 21:29:24 UTC 2007


Ketan Anjaria wrote:
> I also want to run the same query but against different types in  
> one read. Is it possible?

yes, you can do that like so:

{
   "query":[{
     "/common/topic/image":[{
       "guid":null,
       "limit":1,
       "optional":true
     }],
     "guid":null,
     "limit":5,
     "name":null,
     "name~=":"Blue",
     "type":null,
     "type|=":["/film/film","/music/artist"]
   }]
}




More information about the Developers mailing list