{"_id":"@bountyrush/firestore","_rev":"4-0f2c5b8dafd1a32113394cfd643e1229","name":"@bountyrush/firestore","dist-tags":{"latest":"5.0.2-rest.1"},"versions":{"4.15.1-rest.1":{"name":"@bountyrush/firestore","description":"Firestore Client Library for Node.js","version":"4.15.1-rest.1","license":"Apache-2.0","author":{"name":"Google Inc."},"engines":{"node":">=10.10.0"},"repository":{"type":"git","url":"git+https://github.com/bountyrush/nodejs-firestore.git"},"main":"./build/src/index.js","types":"./types/firestore.d.ts","keywords":["google apis client","google api client","google apis","google api","google","google cloud platform","google cloud","cloud","firestore"],"scripts":{"predocs":"npm run compile","docs":"jsdoc -c .jsdoc.js","system-test":"mocha build/system-test --timeout 600000","presystem-test":"npm run compile","samples-test":"npm link && cd samples/ && npm link ../ && npm test && cd ../","conformance":"mocha build/conformance","preconformance":"npm run compile","test-only":"c8 mocha build/test","pretest-only":"npm run compile","test":"npm run test-only && npm run conformance","lint":"gts check","clean":"gts clean","compile":"tsc -p .","postcompile":"node scripts/init-directories.js && cp -r dev/protos build && cp dev/src/v1beta1/*.json build/src/v1beta1/ && cp dev/src/v1/*.json build/src/v1/ && cp dev/src/v1rest/*.json build/src/v1rest/ && cp dev/conformance/test-definition.proto build/conformance && cp dev/conformance/conformance-tests/*.json build/conformance/conformance-tests","fix":"gts fix","prepare":"npm run compile","docs-test":"linkinator docs","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","precompile":"gts clean"},"dependencies":{"fast-deep-equal":"^3.1.1","functional-red-black-tree":"^1.0.1","google-gax":"^2.24.1","googleapis":"^86.1.0","protobufjs":"^6.8.6"},"devDependencies":{"@types/assert":"^1.4.0","@types/chai":"^4.2.7","@types/chai-as-promised":"^7.1.2","@types/duplexify":"^3.5.0","@types/extend":"^3.0.0","@types/mocha":"^8.0.0","@types/node":"^14.0.0","@types/sinon":"^10.0.0","@types/through2":"^2.0.34","c8":"^7.0.0","chai":"^4.1.2","chai-as-promised":"^7.1.1","codecov":"^3.6.1","duplexify":"^4.0.0","extend":"^3.0.2","gts":"^3.0.0","jsdoc":"^3.6.2","jsdoc-fresh":"^1.0.2","jsdoc-region-tag":"^1.0.2","length-prefixed-json-stream":"^1.0.1","linkinator":"^2.0.0","mocha":"^7.0.0","proxyquire":"^2.1.3","sinon":"^11.0.0","ts-node":"^10.0.0","typescript":"3.8.3","through2":"^4.0.0"},"bugs":{"url":"https://github.com/bountyrush/nodejs-firestore/issues"},"homepage":"https://github.com/bountyrush/nodejs-firestore#readme","gitHead":"1dda1bdb53818299fcaefe606d82777ce74dafd2","_id":"@bountyrush/firestore@4.15.1-rest.1","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-gfLGN/C3RfzpQF+l5D2oCYKQtAdrjJ3qmXch0v7w5+0pwYjgXCOX3Z7gXM5CxriVRwtXjwYelgN3S64HWb7W5g==","shasum":"c536bc3eba0a074d6390c9b0dbdb3191d9beadd3","tarball":"https://registry.npmjs.org/@bountyrush/firestore/-/firestore-4.15.1-rest.1.tgz","fileCount":283,"unpackedSize":5730042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ2+PCRA9TVsSAnZWagAAeiQP+QCiuEKopAhSnFBWSM0Q\n5PmjDb3lQdABEhpvRO95t5I0pKp8aUmlYUxL7Pyf9O4pw/rGEOtR26Whe383\n093beyWaYEiyCjYS/FFLqTopUkBoIkc3QSBT1fYQu3j6Xp1lmmdj7BaknWZy\nWduzagdvVb+kdskfBCfZIAgZL9gVN/4H8lxjLIsFpmftrpDbga0eeEggV8Sd\n0lZBQkt+5dc44qm9IUzveWUp8h33/ilpHkCI5b86eXhXsFH1HwaiL0Z0xVwS\nBYZ5bbad0FWIIRn8fNjmHGIVeSlvc0nq9ZTwSGPm0BRZmiD1lfndk0iTRAc3\nDZAYKhCqhgAwOYo7+Mj269m5TLs4pfa1eQMcg4alOON+3CM2sJnSrv+YtWVR\nf0zzIHvBhT9HutSyPodMg5IvgLFfbfz9/a4CJv0PF61n+nb6MljSQCpilhBh\nvcOWk1GhSMm7hziIQcfsJI81/AV/CELYI3H+1tkwk3Yuoa+fOx7UEwINKdIg\nM7UN2cmZgfkL52vZhWI9a8qhGUZqbK2k7/JuULhcLeiyIYHfw7UZ9caB1V08\nJ5Y5Ym8YPGnfWRSjLdN+5sjq5Qkju1NYW0ZgImRDAjshdt5R/rGUVpBxtijf\nuVikO3ZS13jQ2voSRWthJtj7/DRW9Rfb2/hyaQAj2ZXNe/2KTtAd2CA9K1OQ\ndgU6\r\n=g/rj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHW/i42s8sX6VQsE2cS7/pwtJMG4Qhm4zesou3iSvU4DAiAMh4cZYipFEMubWxHTlbAc3SPnSkdWpIx+1Tm0OR83Hw=="}]},"_npmUser":{"name":"bountyrush","email":"bountyrush@gmail.com"},"directories":{},"maintainers":[{"name":"bountyrush","email":"bountyrush@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/firestore_4.15.1-rest.1_1631809422700_0.39752586842615356"},"_hasShrinkwrap":false},"4.15.1-rest.2":{"name":"@bountyrush/firestore","description":"Firestore Client Library for Node.js","version":"4.15.1-rest.2","license":"Apache-2.0","author":{"name":"Google Inc."},"engines":{"node":">=10.10.0"},"repository":{"type":"git","url":"git+https://github.com/bountyrush/nodejs-firestore.git"},"main":"./build/src/index.js","types":"./types/firestore.d.ts","keywords":["google apis client","google api client","google apis","google api","google","google cloud platform","google cloud","cloud","firestore"],"scripts":{"predocs":"npm run compile","docs":"jsdoc -c .jsdoc.js","system-test":"mocha build/system-test --timeout 600000","presystem-test":"npm run compile","samples-test":"npm link && cd samples/ && npm link ../ && npm test && cd ../","conformance":"mocha build/conformance","preconformance":"npm run compile","test-only":"c8 mocha build/test","pretest-only":"npm run compile","test":"npm run test-only && npm run conformance","lint":"gts check","clean":"gts clean","compile":"tsc -p .","postcompile":"node scripts/init-directories.js && cp -r dev/protos build && cp dev/src/v1beta1/*.json build/src/v1beta1/ && cp dev/src/v1/*.json build/src/v1/ && cp dev/src/v1rest/*.json build/src/v1rest/ && cp dev/conformance/test-definition.proto build/conformance && cp dev/conformance/conformance-tests/*.json build/conformance/conformance-tests","fix":"gts fix","prepare":"npm run compile","docs-test":"linkinator docs","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","precompile":"gts clean"},"dependencies":{"fast-deep-equal":"^3.1.1","functional-red-black-tree":"^1.0.1","google-gax":"^2.24.1","googleapis":"^86.1.0","protobufjs":"^6.8.6"},"devDependencies":{"@types/assert":"^1.4.0","@types/chai":"^4.2.7","@types/chai-as-promised":"^7.1.2","@types/duplexify":"^3.5.0","@types/extend":"^3.0.0","@types/mocha":"^8.0.0","@types/node":"^14.0.0","@types/sinon":"^10.0.0","@types/through2":"^2.0.34","c8":"^7.0.0","chai":"^4.1.2","chai-as-promised":"^7.1.1","codecov":"^3.6.1","duplexify":"^4.0.0","extend":"^3.0.2","gts":"^3.0.0","jsdoc":"^3.6.2","jsdoc-fresh":"^1.0.2","jsdoc-region-tag":"^1.0.2","length-prefixed-json-stream":"^1.0.1","linkinator":"^2.0.0","mocha":"^7.0.0","proxyquire":"^2.1.3","sinon":"^11.0.0","ts-node":"^10.0.0","typescript":"3.8.3","through2":"^4.0.0"},"bugs":{"url":"https://github.com/bountyrush/nodejs-firestore/issues"},"homepage":"https://github.com/bountyrush/nodejs-firestore#readme","gitHead":"349cb481a14b5902c58c0470a83c4ba8ba990536","_id":"@bountyrush/firestore@4.15.1-rest.2","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-X14ZMijdzugs6H34/RoYhWMlIiknPGfVLxIJ3+I+Wt0byaUfQvfWQ3NBJqIKSO/E8XF2o43yQPXeR1I+5Zfb3A==","shasum":"1e3bf97c48525d466567fe594be0f12cdc2fd1d3","tarball":"https://registry.npmjs.org/@bountyrush/firestore/-/firestore-4.15.1-rest.2.tgz","fileCount":283,"unpackedSize":5730847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzZm0CRA9TVsSAnZWagAA6VkP/j6mDyC1LSdoMRKDEabF\nTWuF3VIswZV4gEO0AgvJnNDv+8cEuYWDtfFUuFMo1Y9xSKhEg9cB1FmzZZsW\nuW7Dt0Rjfv/GQUR+MMlojGeS66K0I4C/r7WVP6R9fvDW8f/eoH0vWl4s8f2c\ntVVoNp46mOEV0wahjDuNljFl8KrDkrwSW3lR/1zK6SUI7VPSWSdBEVgc0FHG\n9GxKn8X504UdNkq3JoI2KYOvklNTGSLbZKP8tWBOxenYIOErxb6KzuVfEqw2\ncFS9vm1sVprlDWBXGTQnncavr2QlxGmfkRadbAOrJ6SNlt/HY/E2I/CBamCh\nAMdA/PLk6ny8WjwhEVZ7s4CuxrHstEmAOuurCJoasmDCBEtO1OiThxTmZMeN\npWcvwO2zjmfDZS6ORd1o61M2UwyOG4IVSssFBfPAcNH1psfkrBsqpe3zcmLx\n/9hFvxn+C8ylKr+wc6OEcX0Bp3aVfN9Ao5Ldo6JlAkSbcxeVpYzy5RwYkk5G\nvuVi1gjoEpMHZKNtC3yliuIyzk12gZBiT1ktD+KKxaVUsD3lGNe+/Z3EgMdT\nTQNyrGWmIVC/7QBgcZpJ4WC0ddjFq2PuWZAhOJL6sO0NIqogWdF0lQO7u8gM\njTGn2JbMkTNvBdpy1GYGiWrThLIhRD13G/fhhog5O47Hd5LLY1z+EcKuO0DM\n1z8H\r\n=zg1w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY1jPwpdJDDjigvemIkl1+Rwtj1TG1l6PaA4vspugcggIhAIhsGV5tq8Y4F+aOVeY2++DY1t3yH2gVc/C6K5QAvHrd"}]},"_npmUser":{"name":"bountyrush","email":"bountyrush@gmail.com"},"directories":{},"maintainers":[{"name":"bountyrush","email":"bountyrush@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/firestore_4.15.1-rest.2_1632391796724_0.15215394065580723"},"_hasShrinkwrap":false},"5.0.2-rest.1":{"name":"@bountyrush/firestore","description":"Firestore Client Library for Node.js","version":"5.0.2-rest.1","license":"Apache-2.0","author":{"name":"Google Inc."},"engines":{"node":">=10.10.0"},"repository":{"type":"git","url":"git+https://github.com/bountyrush/nodejs-firestore.git"},"main":"./build/src/index.js","types":"./types/firestore.d.ts","keywords":["google apis client","google api client","google apis","google api","google","google cloud platform","google cloud","cloud","firestore"],"scripts":{"predocs":"npm run compile","docs":"jsdoc -c .jsdoc.js","system-test":"mocha build/system-test --timeout 600000","presystem-test":"npm run compile","samples-test":"npm link && cd samples/ && npm link ../ && npm test && cd ../","conformance":"mocha build/conformance","preconformance":"npm run compile","test-only":"c8 mocha build/test","pretest-only":"npm run compile","test":"npm run test-only && npm run conformance","lint":"gts check","clean":"gts clean","compile":"tsc -p .","postcompile":"node scripts/init-directories.js && cp -r dev/protos build && cp dev/src/v1beta1/*.json build/src/v1beta1/ && cp dev/src/v1/*.json build/src/v1/ && cp dev/src/v1rest/*.json build/src/v1rest/ && cp dev/conformance/test-definition.proto build/conformance && cp dev/conformance/conformance-tests/*.json build/conformance/conformance-tests","fix":"gts fix","prepare":"npm run compile","docs-test":"linkinator docs","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","precompile":"gts clean"},"dependencies":{"fast-deep-equal":"^3.1.1","functional-red-black-tree":"^1.0.1","google-gax":"^2.24.1","googleapis":"^86.1.0","protobufjs":"^6.8.6"},"devDependencies":{"@types/assert":"^1.4.0","@types/chai":"^4.2.7","@types/chai-as-promised":"^7.1.2","@types/duplexify":"^3.5.0","@types/extend":"^3.0.0","@types/mocha":"^8.0.0","@types/node":"^16.0.0","@types/sinon":"^10.0.0","@types/through2":"^2.0.34","c8":"^7.0.0","chai":"^4.1.2","chai-as-promised":"^7.1.1","codecov":"^3.6.1","duplexify":"^4.0.0","extend":"^3.0.2","gts":"^3.0.0","jsdoc":"^3.6.2","jsdoc-fresh":"^1.0.2","jsdoc-region-tag":"^1.0.2","length-prefixed-json-stream":"^1.0.1","linkinator":"^2.0.0","mocha":"^7.0.0","proxyquire":"^2.1.3","sinon":"^12.0.0","ts-node":"^10.0.0","typescript":"^4.4.3","through2":"^4.0.0"},"bugs":{"url":"https://github.com/bountyrush/nodejs-firestore/issues"},"homepage":"https://github.com/bountyrush/nodejs-firestore#readme","gitHead":"ee0ac1550fb1848063e605ba93e186f882e27aca","_id":"@bountyrush/firestore@5.0.2-rest.1","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ZN9mYErF8nRClfj852bYnR5E5wxqEUD/6VE2SLCEY9AbgliWXELQSkt0stBcvkN9TrS3UGFbXoD+qw9Hf11JDw==","shasum":"f89e23c81399a73372fb500e9d03335e65ed9398","tarball":"https://registry.npmjs.org/@bountyrush/firestore/-/firestore-5.0.2-rest.1.tgz","fileCount":283,"unpackedSize":5753701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6S8SCRA9TVsSAnZWagAAKa4P/R9Bsb6TSmCXnwwGkSn8\nWWB3mDrXxYCIh1pYSXv6RzvzS34K2dAKIMZTu/Bg1/Ur1vFuASO78ANe3bet\nH2F7Vv2O7+TnHaIsx2Ns5b0KdYhUkDuVjZ/ZniR8Blm0c7On4WDHvDfek3u/\nkxSJ5SGl1yse8FI5CKskHzd8WbRvRoGbcG7pDSW87q7ozDygI9SX4lKdxgMo\nD1zFS7WSB/3Mm4q0jCnm5yrLeCmy+TaqVOeD6LWM0PBpL96w+aFJJisHkQdy\nRlVuXblmJvrHuZgwWrS0A3jugald5w4+IEyWkDVX9/DzV5T0pVSlYaFcBeCG\nnANgoNB/imGHIphoNe0+HmuTLX0Ax3QcIvvGZkv5/LXiWAWS8142L27OpVvY\nVwipe9m9aNgalIyn2g4wNl2jU1QlzVBIbXLBPDvRgT2TlMCNoIR4a6cbiV8M\nC088iBFU3djeVD9SfHJJgRvUsZ5ohPjoA3GVlPOJodUs2CO1KyOX3IrnP2ZM\nrpJZvGOHV/bJYX7C+WgFyL2FRjY+sndTgiQh81oII+YABJ9wIXvxoQ3HxRs8\nE/imUPU+QiOkMt2GECVUX2ufOs7IVpiKl3hr4GqLw8Flk0sX6NE+3UcmO1ZW\nUXecg8WG31N71MeR4URb0tu1BKu6cSG9CCAcxjxUj7xmWoUBcAsIBiGI5+40\nl0y9\r\n=YEmm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6CRPrzg17JcULSNEzGaAZU04KtL3K3eiLEb6kDLBLNgIgTuTnTgbDsDw/kWYmIcP5xGRahiMXxHC2Dhb0U4Vhhds="}]},"_npmUser":{"name":"bountyrush","email":"bountyrush@gmail.com"},"directories":{},"maintainers":[{"name":"bountyrush","email":"bountyrush@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/firestore_5.0.2-rest.1_1642671890763_0.9676850690135788"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-16T16:23:42.646Z","4.15.1-rest.1":"2021-09-16T16:23:43.091Z","modified":"2022-04-04T20:16:09.924Z","4.15.1-rest.2":"2021-09-23T10:09:57.007Z","5.0.2-rest.1":"2022-01-20T09:44:50.919Z"},"maintainers":[{"name":"bountyrush","email":"bountyrush@gmail.com"}],"description":"Firestore Client Library for Node.js","homepage":"https://github.com/bountyrush/nodejs-firestore#readme","keywords":["google apis client","google api client","google apis","google api","google","google cloud platform","google cloud","cloud","firestore"],"repository":{"type":"git","url":"git+https://github.com/bountyrush/nodejs-firestore.git"},"author":{"name":"Google Inc."},"bugs":{"url":"https://github.com/bountyrush/nodejs-firestore/issues"},"license":"Apache-2.0","readme":"### Are you having long cold starts ranging from 4-15 secs when using firestore with cloud functions?\n(Check out in cloud trace how bad they are performing for firestore triggers or http functions)\n\n\nThis module makes use of rest api (through google apis) instead of gRpc libs used in standard library. The cold starts with this project are minimal and acceptable. \n\nJust set the FIRESTORE_USE_REST_API env variable to use REST mode.\nSetting to false will make use of default gRpc libraries.\n\n> We will try to sync with the main project on every major+minor release.\n\n\n# Installation steps\n\n1. npm install @bountyrush/firestore\n2. Replace require('@google-cloud/firestore') with require('@bountyrush/firestore')\n3. Have FIRESTORE_USE_REST_API = 'true' in your environment variables. (process.env.FIRESTORE_USE_REST_API should be set to 'true' for using in rest mode. If its not set, it just uses standard firestore with grpc connections)\n\n\n\n[//]: # \"This README.md file is auto-generated, all changes to this file will be lost.\"\n[//]: # \"To regenerate it, use `python -m synthtool`.\"\n<img src=\"https://avatars2.githubusercontent.com/u/2810941?v=3&s=96\" alt=\"Google Cloud Platform logo\" title=\"Google Cloud Platform\" align=\"right\" height=\"96\" width=\"96\"/>\n\n# [Cloud Firestore: Node.js Client](https://github.com/googleapis/nodejs-firestore)\n\n[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)\n[![npm version](https://img.shields.io/npm/v/@google-cloud/firestore.svg)](https://www.npmjs.org/package/@google-cloud/firestore)\n\n\n\n\nThis is the Node.js Server SDK for [Google Cloud Firestore](https://firebase.google.com/docs/firestore/). Google Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.\n\nThis Cloud Firestore Server SDK uses Google’s Cloud Identity and Access Management for authentication and should only be used in trusted environments. Your Cloud Identity credentials allow you bypass all access restrictions and provide read and write access to all data in your Cloud Firestore project.\n\nThe Cloud Firestore Server SDKs are designed to manage the full set of data in your Cloud Firestore project and work best with reliable network connectivity. Data operations performed via these SDKs directly access the Cloud Firestore backend and all document reads and writes are optimized for high throughput.\n\nApplications that use Google&#x27;s Server SDKs should not be used in end-user environments, such as on phones or on publicly hosted websites. If you are developing a Web or Node.js application that accesses Cloud Firestore on behalf of end users, use the firebase Client SDK.\n\n**Note:** This Cloud Firestore Server SDK does not support Firestore databases created in [Datastore mode](https://cloud.google.com/datastore/docs/firestore-or-datastore#in_datastore_mode). To access these databases, use the [Datastore SDK](https://www.npmjs.com/package/@google-cloud/datastore).\n\n\nA comprehensive list of changes in each version may be found in\n[the CHANGELOG](https://github.com/googleapis/nodejs-firestore/blob/main/CHANGELOG.md).\n\n* [Cloud Firestore Node.js Client API Reference][client-docs]\n* [Cloud Firestore Documentation][product-docs]\n* [github.com/googleapis/nodejs-firestore](https://github.com/googleapis/nodejs-firestore)\n\nRead more about the client libraries for Cloud APIs, including the older\nGoogle APIs Client Libraries, in [Client Libraries Explained][explained].\n\n[explained]: https://cloud.google.com/apis/docs/client-libraries-explained\n\n**Table of contents:**\n\n\n* [Quickstart](#quickstart)\n  * [Before you begin](#before-you-begin)\n  * [Installing the client library](#installing-the-client-library)\n  * [Using the client library](#using-the-client-library)\n* [Samples](#samples)\n* [Versioning](#versioning)\n* [Contributing](#contributing)\n* [License](#license)\n\n## Quickstart\n\n### Before you begin\n\n1.  [Select or create a Cloud Platform project][projects].\n1.  [Enable the Cloud Firestore API][enable_api].\n1.  [Set up authentication with a service account][auth] so you can access the\n    API from your local workstation.\n\n### Installing the client library\n\n```bash\nnpm install @google-cloud/firestore\n```\n\n\n### Using the client library\n\n```javascript\nconst {Firestore} = require('@google-cloud/firestore');\n\n// Create a new client\nconst firestore = new Firestore();\n\nasync function quickstart() {\n  // Obtain a document reference.\n  const document = firestore.doc('posts/intro-to-firestore');\n\n  // Enter new data into the document.\n  await document.set({\n    title: 'Welcome to Firestore',\n    body: 'Hello World',\n  });\n  console.log('Entered new data into the document');\n\n  // Update an existing document.\n  await document.update({\n    body: 'My first Firestore app',\n  });\n  console.log('Updated an existing document');\n\n  // Read the document.\n  const doc = await document.get();\n  console.log('Read the document');\n\n  // Delete the document.\n  await document.delete();\n  console.log('Deleted the document');\n}\nquickstart();\n\n```\n\n\n\n## Samples\n\nSamples are in the [`samples/`](https://github.com/googleapis/nodejs-firestore/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.\n\n| Sample                      | Source Code                       | Try it |\n| --------------------------- | --------------------------------- | ------ |\n| Limit-to-last-query | [source code](https://github.com/googleapis/nodejs-firestore/blob/main/samples/limit-to-last-query.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-firestore&page=editor&open_in_editor=samples/limit-to-last-query.js,samples/README.md) |\n| Quickstart | [source code](https://github.com/googleapis/nodejs-firestore/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-firestore&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |\n| Solution-counters | [source code](https://github.com/googleapis/nodejs-firestore/blob/main/samples/solution-counters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-firestore&page=editor&open_in_editor=samples/solution-counters.js,samples/README.md) |\n\n\n\nThe [Cloud Firestore Node.js Client API Reference][client-docs] documentation\nalso contains samples.\n\n## Supported Node.js Versions\n\nOur client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).\nLibraries are compatible with all current _active_ and _maintenance_ versions of\nNode.js.\n\nClient libraries targeting some end-of-life versions of Node.js are available, and\ncan be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).\nThe dist-tags follow the naming convention `legacy-(version)`.\n\n_Legacy Node.js versions are supported as a best effort:_\n\n* Legacy versions will not be tested in continuous integration.\n* Some security patches may not be able to be backported.\n* Dependencies will not be kept up-to-date, and features will not be backported.\n\n#### Legacy tags available\n\n* `legacy-8`: install client libraries from this dist-tag for versions\n  compatible with Node.js 8.\n\n## Versioning\n\nThis library follows [Semantic Versioning](http://semver.org/).\n\n\n\nThis library is considered to be **stable**. The code surface will not change in backwards-incompatible ways\nunless absolutely necessary (e.g. because of critical security issues) or with\nan extensive deprecation period. Issues and requests against **stable** libraries\nare addressed with the highest priority.\n\n\n\n\n\n\nMore Information: [Google Cloud Platform Launch Stages][launch_stages]\n\n[launch_stages]: https://cloud.google.com/terms/launch-stages\n\n## Contributing\n\nContributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-firestore/blob/main/CONTRIBUTING.md).\n\nPlease note that this `README.md`, the `samples/README.md`,\nand a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)\nare generated from a central template. To edit one of these files, make an edit\nto its templates in\n[directory](https://github.com/googleapis/synthtool).\n\n## License\n\nApache Version 2.0\n\nSee [LICENSE](https://github.com/googleapis/nodejs-firestore/blob/main/LICENSE)\n\n[client-docs]: https://cloud.google.com/nodejs/docs/reference/firestore/latest\n[product-docs]: https://cloud.google.com/firestore\n[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png\n[projects]: https://console.cloud.google.com/project\n[billing]: https://support.google.com/cloud/answer/6293499#enable-billing\n[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=firestore.googleapis.com\n[auth]: https://cloud.google.com/docs/authentication/getting-started\n","readmeFilename":"README.md"}