We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed403c0 commit 471ee5fCopy full SHA for 471ee5f
TUTORIAL.md
@@ -321,12 +321,15 @@ main (int argc,
321
{
322
bson_t *doc;
323
324
- doc = BCON_NEW ("$set", "{",
325
- "name", BCON_UTF8 ("bambino"),
326
- "$push", "{",
327
- "wins", BCON_INT32 (1),
328
- "}",
329
- "}");
+ doc = BCON_NEW ("name", BCON_UTF8 ("Babe Ruth"),
+ "batting_average", BCON_DOUBLE (.342),
+ "hits", BCON_INT32 (2873),
+ "home_runs", BCON_INT32 (714),
+ "rbi", BCON_INT32 (2213),
+ "nicknames", "[",
330
+ BCON_UTF8 ("the Sultan of Swat"),
331
+ BCON_UTF8 ("the Bambino"),
332
+ "]");
333
334
str = bson_as_json (doc, NULL);
335
printf ("%s\n", str);
0 commit comments