Reputation: 2279
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
Reputation: 7762
Here is the GQL reference, you express what you want as:
SELECT * FROM Product
WHERE __key__ = KEY('Product', 'abcd')
Upvotes: 3