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
But if you use an array but just have one item inside it:
const keys = [
datastore.key(['Company', 123])
];
you get the following exception:
TypeError: Cannot read property 'join' of undefined
at keyToString (/x/node_modules/nsql-cache-datastore/lib/index.js:99:29)
at Object._db.keyToString.key [as keyToString] (/x/node_modules/nsql-cache/lib/index.js:171:61)
at keyToString (/x/node_modules/nsql-cache/lib/keys.js:17:60)
at Object.read (/x/node_modules/nsql-cache/lib/keys.js:68:65)
at Datastore.ds.get (/x/node_modules/nsql-cache-datastore/lib/index.js:184:35)
at require.ProviderController.get (x/src/js/controllers/providerController.js:47:31)
at Layer.handle [as handle_request] (/x/node_modules/express/lib/router/layer.js:95:5)
at next (/x/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/x/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/x/node_modules/express/lib/router/layer.js:95:5)
The text was updated successfully, but these errors were encountered:
Using the following cache:
and then fetching two entities works fine:
But if you use an array but just have one item inside it:
you get the following exception:
The text was updated successfully, but these errors were encountered: