Skip to content

datastore.get should handle entity not found better #10

Closed
@proppy

Description

Currently datastore.get would return `callback(null #error, undefined #key, undefined #entity), when entity is not found.

I think it would be more useful for the developer to provide a more explicit hint that the entity was not found (either through a dedicated error or some more structured result value).

As a reference the underlying RPC returns found and missing arrays.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions