Nijin Narayanan
Nijin Narayanan

Reputation: 2279

Query based on key name in datastore viewer

How to write a query based on key name in google appengne datastore viewer ?

I need to get the entity from NDB Model Product where its key name is abcd.

Upvotes: 0

Views: 278

Answers (1)

Ezequiel Muns
Ezequiel Muns

Reputation: 7762

Here is the GQL reference, you express what you want as:

SELECT * FROM Product
WHERE __key__ = KEY('Product', 'abcd')

Upvotes: 3

Related Questions