According to the documentation , datastore.runQuery returns entity objects with data and key properties. Are you interested in key .
datastore.runQuery(query, function(err, entities) { // entities = [ // { // data: The record, // key: The key for this record // }, // ... // ] });
So, for example, using the first object, you will gain access to the key as follows:
entity = entities[0] key = entity.key
source share