We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96308fc commit 05b4e32Copy full SHA for 05b4e32
update/save.js
@@ -3,7 +3,7 @@ var MongoClient = require('mongodb').MongoClient
3
MongoClient.connect('mongodb://127.0.0.1:27017/course', function (err, db) {
4
if (err) throw err
5
6
- var query = { 'student': 'Steve', 'assignment': 'hw1' }
+ var query = { 'assignment': 'hw1' }
7
8
db.collection('grades').findOne(query, function (err, doc) {
9
0 commit comments