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.
2 parents 0a4a12b + 23e00a4 commit f803cabCopy full SHA for f803cab
source/quick-start.txt
@@ -184,7 +184,7 @@ from a collection (either singly or several at once).
184
client = Mongo::Client.new('mongodb://127.0.0.1:27017/test')
185
collection = client[:people]
186
187
- result = collection.delete_one( name 'Steve' )
+ result = collection.delete_one( { name: 'Steve' } )
188
189
puts result.deleted_count # returns 1 because one document was deleted
190
0 commit comments