Skip to content

Commit

Permalink
Update doc comment showing structure of entity (#276)
Browse files Browse the repository at this point in the history
When a `get` is returned from datastore the schema of the entity has
been extended to include the key. The comment showing the expected
structure of the entity is being updated to include the key for
completeness.
  • Loading branch information
BenWhitehead authored and JustinBeckwith committed Dec 6, 2018
1 parent c227632 commit c969276
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion samples/concepts.js
Expand Up @@ -273,7 +273,15 @@ class Entity extends TestHelper {
// category: 'Personal',
// done: false,
// priority: 4,
// description: 'Learn Cloud Datastore'
// description: 'Learn Cloud Datastore',
// [Symbol(KEY)]:
// Key {
// namespace: undefined,
// id: '...',
// kind: 'Task',
// path: [Getter]
// }
// }
// };
console.log(entity);
// [END datastore_lookup]
Expand Down

0 comments on commit c969276

Please sign in to comment.