com presentations: Fixed typoes.: slides/mongodb/cursors-shell.xml slides/mongodb/insert-js.xml
[email protected] (Derick Rethans)
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
Commit: f348e8308b4ff2cb54082bf5b13f5c4fc224ce6e Author: Derick Rethans <[email protected]> Thu, 23 Jan 2014 22:42:16 +0100 Parents: d260f1fa293ae410c7ff73305dc6f54e20cfe176 Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=f348e8308b4ff2cb54082bf5b13f5c4fc224ce6e Log: Fixed typoes. Changed paths: M slides/mongodb/cursors-shell.xml M slides/mongodb/insert-js.xml Diff: diff --git a/slides/mongodb/cursors-shell.xml b/slides/mongodb/cursors-shell.xml index cf7b2b2..074b176 100644 --- a/slides/mongodb/cursors-shell.xml +++ b/slides/mongodb/cursors-shell.xml @@ -9,7 +9,7 @@ iterator in the form of an iterator.</blurb> > use demo switched to db demo > db.talks.find( { 'talks.title' : { '$exists' : true } } ). -... forEach(function(a) { prin( a._id ) } ); +... forEach(function(a) { print( a._id ) } ); derickr >]]></example> </slide> diff --git a/slides/mongodb/insert-js.xml b/slides/mongodb/insert-js.xml index a4348c4..b8a837b 100644 --- a/slides/mongodb/insert-js.xml +++ b/slides/mongodb/insert-js.xml @@ -2,7 +2,7 @@ <title>Inserting a document (JavaScript)</title> <example> -{ +doc = { "_id" : "derickr", "name" : "Derick Rethans", "talks" : [ @@ -15,6 +15,8 @@ "url" : "http://derickrethans.nl/talks/xdebug-phpbcn11.pdf", } ] -} +}; + +db.collectionName.insert( doc ); </example> </slide>