google-cloud-datastore-node
NodeJS library to simplify working with Google Cloud DataStore
Based on a code by Google https://github.com/GoogleCloudPlatform/nodejs-getting-started
The difference is that this library uses Promises instead of callbacks which leads to a better code organization and can be used as well with async/await.
Installation
yarn add google-cloud-datastore-node
Usage
Setting up project id
const setup createDao = ; ;
Creating an entity
const setup createDao = ; const testDao = ; testDao;
Reading an entity
const setup createDao = ; const testDao = ; testDao;
Updating an entity
const setup createDao = ; const testDao = ; testDao;
Deleting an entity
const setup createDao = ; const testDao = ; testDao;
Listing entities
const setup createDao = ; const testDao = ; /* parameters are `limit`, `order`, `token` */testDao;
Listing entities with filters applied
const setup createDao = ; const testDao = ; /* parameters are `filters`, `limit`, `order`, `token` */testDao;