You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Insert the documents into a collection, one-by-one.
90
90
// The result documents contain auto-generated
@@ -174,12 +174,12 @@ You should see the following output:
174
174
175
175
* Retrieving the first document by its key *
176
176
177
-
{ "name" : "Alex", "friends" : "50" }
177
+
{ "name" : "Alex", "friends" : 50 }
178
178
179
179
* Retrieving documents representing users with at least 300 friends *
180
180
181
-
{ "name" : "Mia", "friends" : "300" }
182
-
{ "name" : "Gloria", "friends" : "399" }
181
+
{ "name" : "Mia", "friends" : 300 }
182
+
{ "name" : "Gloria", "friends" : 399 }
183
183
184
184
This example illustrates two ways of retrieving documents from the collection: by using unique document keys, or by using QBEs. To find all users with at least 300 friends, the following QBE was used in the code above:
0 commit comments