This collection of samples demonstrates how to perform various operations with Google Cloud Firestore using Node.js, including basic reads and writes, data pipelines, and distributed counters.
Before running the samples, make sure you've followed the steps outlined in Using the client library.
npm install
View the source code.
Usage:
node limit-to-last-query.js
View the source code.
Usage:
node pipelines-quickstart.js
View the source code.
Usage:
node quickstart.js
View the source code.
Usage:
node distributed-counter.js
To run the automated tests for these samples, execute:
npm test