Why Google Solutions Products Pricing Getting started Docs Support
Docs Support
Contact Sales Get started for free

@google-cloud/datastore 2.0.0 » Class: Int

Constructor

Int

new Int(value)

Build a Datastore Int object. For long integers, a string can be provided.

Parameter

value

(number or string)

The integer value.

Example

const Datastore = require('@google-cloud/datastore');
const datastore = new Datastore();
const anInt = datastore.int(7);

Property

value

string