nodejs-datastore
nodejs-datastore copied to clipboard
Is it possible to return `key identifier` in the properties
Hi, is it possible to return key identifier in the props (so that one doesn't have to loop through the entities to get ti)?
e.g.
Kind = User Key Identifier=auto-generated Properties=name, email
Snippet:
const query = datastore.createQuery('User')
const [entities] = await datastore.runQuery(query)
console.log(entities)
Expected sample response:
[{
id: <key identifier>
name: '',
email: ''
},
{
id: <key identifier>
name: '',
email: ''
}]