|
26 | 26 | #include "firebase/util.h"
|
27 | 27 |
|
28 | 28 | /*
|
29 |
| - * A collection of code snippets for the Cloud Firestore C++ SDK. These snippets |
30 |
| - * were modelled after the existing Cloud Firestore guide, which can be found |
| 29 | + * A collection of code snippets for the Firestore C++ SDK. These snippets |
| 30 | + * were modelled after the existing Firestore guide, which can be found |
31 | 31 | * here: https://firebase.google.com/docs/firestore.
|
32 | 32 | *
|
33 | 33 | * Note that not all of the Firestore API has been implemented yet, so some
|
@@ -70,8 +70,8 @@ void QuickstartAddData(firebase::firestore::Firestore* db) {
|
70 | 70 | using firebase::firestore::Error;
|
71 | 71 | using firebase::firestore::FieldValue;
|
72 | 72 |
|
73 |
| - // Cloud Firestore stores data in Documents, which are stored in Collections. |
74 |
| - // Cloud Firestore creates collections and documents implicitly the first time |
| 73 | + // Firestore stores data in Documents, which are stored in Collections. |
| 74 | + // Firestore creates collections and documents implicitly the first time |
75 | 75 | // you add data to the document. You do not need to explicitly create
|
76 | 76 | // collections or documents.
|
77 | 77 |
|
@@ -123,7 +123,7 @@ void QuickstartReadData(firebase::firestore::Firestore* db) {
|
123 | 123 | using firebase::firestore::FieldValue;
|
124 | 124 | using firebase::firestore::QuerySnapshot;
|
125 | 125 |
|
126 |
| - // To quickly verify that you've added data to Cloud Firestore, use the data |
| 126 | + // To quickly verify that you've added data to Firestore, use the data |
127 | 127 | // viewer in the Firebase console.
|
128 | 128 | //
|
129 | 129 | // You can also use the "Get" method to retrieve the entire collection.
|
@@ -185,9 +185,9 @@ void AddDataDataTypes(firebase::firestore::Firestore* db) {
|
185 | 185 | using firebase::firestore::FieldValue;
|
186 | 186 | using firebase::firestore::MapFieldValue;
|
187 | 187 |
|
188 |
| - // Cloud Firestore lets you write a variety of data types inside a document, |
| 188 | + // Firestore lets you write a variety of data types inside a document, |
189 | 189 | // including strings, booleans, numbers, dates, null, and nested arrays and
|
190 |
| - // objects. Cloud Firestore always stores numbers as doubles, regardless of |
| 190 | + // objects. Firestore always stores numbers as doubles, regardless of |
191 | 191 | // what type of number you use in your code.
|
192 | 192 | // [START data_types]
|
193 | 193 | MapFieldValue doc_data{
|
@@ -229,7 +229,7 @@ void AddDataAddDocument(firebase::firestore::Firestore* db) {
|
229 | 229 | // [END set_data]
|
230 | 230 |
|
231 | 231 | // But sometimes there isn't a meaningful ID for the document, and it's more
|
232 |
| - // convenient to let Cloud Firestore auto-generate an ID for you. You can do |
| 232 | + // convenient to let Firestore auto-generate an ID for you. You can do |
233 | 233 | // this by calling Add():
|
234 | 234 | // [START add_document]
|
235 | 235 | db->Collection("cities").Add({/*some data*/});
|
@@ -411,7 +411,7 @@ void AddDataDeleteFields(firebase::firestore::Firestore* db) {
|
411 | 411 | // [END delete_field]
|
412 | 412 |
|
413 | 413 | // https://firebase.google.com/docs/firestore/manage-data/delete-data#collections
|
414 |
| - // To delete an entire collection or subcollection in Cloud Firestore, |
| 414 | + // To delete an entire collection or subcollection in Firestore, |
415 | 415 | // retrieve all the documents within the collection or subcollection and
|
416 | 416 | // delete them.
|
417 | 417 | // WARNING: deleting collections from a client SDK is not recommended.
|
@@ -796,7 +796,7 @@ void ReadDataSimpleQueries(firebase::firestore::Firestore* db) {
|
796 | 796 | using firebase::firestore::FieldValue;
|
797 | 797 | using firebase::firestore::Query;
|
798 | 798 |
|
799 |
| - // Cloud Firestore provides powerful query functionality for specifying which |
| 799 | + // Firestore provides powerful query functionality for specifying which |
800 | 800 | // documents you want to retrieve from a collection.
|
801 | 801 |
|
802 | 802 | // The following query returns all cities with state CA:
|
|
0 commit comments