Environment details
- OS: linux
- Node.js version: 7.7.3
- npm version: 4.4.4
- google-cloud-node version: @google-cloud/datastore: 0.7.1
Steps to reproduce
- require
@google-cloud/datastore
- get(keyObj)
Using a callback approach with 1 key
get(key, (err, entity) => {} will output an object
whereas using a promise approach with 1 key
get(key).then(entity => {}) will output a 1 sized array containing the object