Key types don't match those used when querying #34
Labels
api: datastore
Issues related to the googleapis/nodejs-datastore API.
type: question
Request for information or clarification. Not an issue.
Uh oh!
There was an error while loading. Please reload this page.
I know that over the years the datastore key format has changed and we have been using it for nearly 10 years so we have entities spanning all these types. I've been noticing that it's quite hard to use some of these keys because sometimes they need to be either integers or strings. It seems that the node library just returns everything key related as a string.
Environment details
Steps to reproduce
We have several entities that directly reference other entities by key.
When these entities are returned they do contained the referenced keys, but all
id
property have been converted to a string. Here are two examples using different id length formats.Now consider the following queries based on the referenced keys.
I guess my overall point is that the returned key information whether referenced or not should be in an immediately reusable state for querying.
The text was updated successfully, but these errors were encountered: