Skip to content

Include overview documentation on all API pages, and talk about Promises/Callbacks #2167

@quentin-sommer

Description

@quentin-sommer

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

  1. require @google-cloud/datastore
  2. 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

Metadata

Metadata

Labels

type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions