Skip to content

Commit e625025

Browse files
authored
Update Getting-started-example.md
1 parent 0767250 commit e625025

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/Getting-started-example.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ public class testSODA {
7676
// users and the number of friends they have
7777
OracleDocument doc1 =
7878
db.createDocumentFromString(
79-
"{ \"name\" : \"Alex\", \"friends\" : \"50\" }");
79+
"{ \"name\" : \"Alex\", \"friends\" : 50 }");
8080

8181
OracleDocument doc2 =
8282
db.createDocumentFromString(
83-
"{ \"name\" : \"Mia\", \"friends\" : \"300\" }");
83+
"{ \"name\" : \"Mia\", \"friends\" : 300 }");
8484

8585
OracleDocument doc3 =
8686
db.createDocumentFromString(
87-
"{ \"name\" : \"Gloria\", \"friends\" : \"399\" }");
87+
"{ \"name\" : \"Gloria\", \"friends\" : 399 }");
8888

8989
// Insert the documents into a collection, one-by-one.
9090
// The result documents contain auto-generated
@@ -174,12 +174,12 @@ You should see the following output:
174174

175175
* Retrieving the first document by its key *
176176

177-
{ "name" : "Alex", "friends" : "50" }
177+
{ "name" : "Alex", "friends" : 50 }
178178

179179
* Retrieving documents representing users with at least 300 friends *
180180

181-
{ "name" : "Mia", "friends" : "300" }
182-
{ "name" : "Gloria", "friends" : "399" }
181+
{ "name" : "Mia", "friends" : 300 }
182+
{ "name" : "Gloria", "friends" : 399 }
183183

184184
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:
185185

0 commit comments

Comments
 (0)