If you have a Model named 'MyModel' and an object with key 'abcdefg'
use the following GQL
SELECT * FROM MyModel WHERE __key__ = KEY('MyModel','abcdefg')
Start with the kind-name of the parent(s) of the object.
2010/6/13 Philip Tucker <[email protected]>:
> What's the format of selecting by key with kind and ID? Docs say this:
>
> KEY('kind', 'name'/ID [, 'kind', 'name'/ID...])
>
> But I've tried about every combo I can think of and it doesn't work,
> at least not from the console. It works if I put in the full result of
> KeyFactory.keyToString. Is kind just the entity name in quotes? Should
> name/ID be in quotes?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.