How to get entity without specifying its ancestor?

Viewed 177

I am using Google Cloud node.js gcloud library and trying to get an entity that was saved with ancestor key.

To my surprised, I am not able to get the entity without specifying its ancestor key.

const ds = gcloud.datastore.dataset(config);
 ...
ds.get(key, (err, entity)=>{
   return entity;
});
1 Answers
Related