[Developers] Query Multiple Types?

William Pietri william at scissor.com
Wed Mar 14 21:25:29 UTC 2007


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

Anybody have an answer for this one? I'm having a similar issue. I'd 
like to be able to look at all of the properties of an object without 
worrying about the type. The approaches I tried were ignoring the type:

 "query":[{
    "*":null,
    "id":"#9202a8c04000641f80000000010c33ab"
  }]

trying to say any types at all:

 "query":[{
    "*":null,
    "id":"#9202a8c04000641f80000000010c33ab",
    "type":[]
  }]

and specifying the types that the object has to get all the properties 
from both types:

  "query":[{
    "*":null,
    "id":"#9202a8c04000641f80000000010c33ab",
    "type":["/common/topic","/freebase/software_ticket"]
  }]


For various reasons none of these work. I understand why the second one 
fails; the magic meaning of the "type" field in the query field 
conflicts a little with the QBE style of MQL. At least at this stage of 
my understanding though, I'd expect the first and third to work.

Thanks,

William





More information about the Developers mailing list