GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — datastore: Projection KeyOnly-Query unable to select `__key__` - property stay empty · Issue #2338 · googleapis/google-cloud-node Closed Labels api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue. DescriptionHello, I try a really basic query, selecting the I searched the issues and stackoverflow, I also created a thread a SO, but it stays unanswered. I also created a ticket at the google cloud support, also no answer yet. Therefore I create this issue now. Thread on stackoverflow: Environment details
Steps to reproduceconst datastore = require('@google-cloud/datastore')({ projectId: project, keyFilename: `key.json` }); const query = datastore.createQuery("Projects").select('__key__'); datastore.runQuery(query, (err, entities, info) => { console.log('RESULTS:', {err, entities, info}); }); Result: RESULTS: { err: null,
entities: [ {}, {}, {}, {} ],
info:
{ moreResults: 'NO_MORE_RESULTS',
endCursor: 'CjwSNmoOZX5zYW0tcmVjb3JkZXJyJAsSHF9BRV9EYXRhc3RvcmVBZG1pbl9PcGVyYXRpb24YwYQ9DBgAIAA=' } }Expected Result: RESULTS: { err: null,
entities: [
{___key___: 5634472569470976},
{___key___: 5639445604728832},
{___key___: 5654313976201216},
{___key___: 5659313586569216}
],
info:
{ moreResults: 'NO_MORE_RESULTS',
endCursor: 'CjwSNmoOZX5zYW0tcmVjb3JkZXJyJAsSHF9BRV9EYXRhc3RvcmVBZG1pbl9PcGVyYXRpb24YwYQ9DBgAIAA=' } }The property It should work as it is described in the API Docs: https://cloud.google.com/datastore/docs/concepts/queries#projection_queries Do I missing something? Thanks! Activity
MetadataMetadataAssigneesLabelsapi: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |