Using v0.7 on node 7.
Looking here:
https://cloud.google.com/datastore/docs/concepts/queries
it says
const query = datastore.createQuery('Task')
.filter('__key__', '>', datastore.key(['Task', 'someTask']))
What I need is, given an id for an entity, ex id = '5709436928655360' and entity 'bla'
- Make a key for that entity using an id
- Fetch a row, using that key.
My code :
https://github.com/topseed/topseed-bp/blob/master/dserver/ds/ContentDS.js
to make a key is ~ line 37.
Is that right? It's not working.
The code to fetch is ~ line 15. Also not working but could be due to key not correct.
There are no examples to fetch a row by key id, I looked and googled.
(Separate part 2, I want to update new columns, but not delete old ones, so first I fetch so I can merge).
Help/hints please.
Using v0.7 on node 7.
Looking here:
https://cloud.google.com/datastore/docs/concepts/queries
it says
What I need is, given an id for an entity, ex id = '5709436928655360' and entity 'bla'
My code :
https://github.com/topseed/topseed-bp/blob/master/dserver/ds/ContentDS.js
to make a key is ~ line 37.
Is that right? It's not working.
The code to fetch is ~ line 15. Also not working but could be due to key not correct.
There are no examples to fetch a row by key id, I looked and googled.
(Separate part 2, I want to update new columns, but not delete old ones, so first I fetch so I can merge).
Help/hints please.