0
votes

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.

1

1 Answers

3
votes

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

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