Skip to content

How can I create a partial key where the parent uses an ID identifier in Datastore #567

Closed
@byrneciaran

Description

I know to create a partial key I can write

var key = ds.key(['Entry']);

how can I write a partial key with a parent without specifying name ? For example

var key = ds.key(['Entry', 'Foo', 'Todo']);

creates a partial key with a parent, but the parent key has an identifier name='foot'. How can I state that the parent should use a numeric id (or am I misunderstanding this) ?

Metadata

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions