3
votes

Here is an example of a record I am trying to write a GQL Admin Console query for (not Python).

Decoded entity key:

packageName: name=com.mycompany.example > userId: [email protected]
Entity key: ag...Qw

I've already tried:

SELECT * FROM userId where __key__ = KEY('userId', '[email protected]')

This does not find the record. I suspect this is due to the userId being a child under packageName... How do I write a GQL query for this?

1

1 Answers

3
votes

Try this:

SELECT * FROM userId WHERE __key__ = KEY('packageName', 'com.mycompany.example', 'userId','[email protected]')
>     // SELECT * FROM ChildClassName WHERE __key__ = KEY('ParentClassName', 'ParentName, 'ChildClassName', 'ChildName'))

See the info about the Key class for more details.

hope this helps.