You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous versions (^0.8.1) I could make a query with an ID as a string coming directly from the request: ds.get(ds.key({ namespace: 'namespace', path: ['kind', 'kindName', 'entity', '5757334940811264']}), callback)
would work. But with the latest release (^0.25.1) I have to transform the ID in number for the query to work: ds.get(ds.key({ namespace: 'namespace', path: ['kind', 'kindName', 'entity', 5757334940811264]}), callback)
Is this intended?
The text was updated successfully, but these errors were encountered:
Yes, this is intentional. String IDs are called "names", while numeric IDs are "ids". We use the type of input we receive (number or string) to determine if it's an id or name. An issue was reported a couple of months ago that found the bug in our code: #874
In previous versions (^0.8.1) I could make a query with an ID as a string coming directly from the request:
ds.get(ds.key({ namespace: 'namespace', path: ['kind', 'kindName', 'entity', '5757334940811264']}), callback)
would work. But with the latest release (^0.25.1) I have to transform the ID in number for the query to work:
ds.get(ds.key({ namespace: 'namespace', path: ['kind', 'kindName', 'entity', 5757334940811264]}), callback)
Is this intended?
The text was updated successfully, but these errors were encountered: