Skip to content

Commit

Permalink
use _id
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Jan 6, 2013
1 parent 0ece7f0 commit 216bc30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -27,7 +27,7 @@ var insertResult = insert(collection, {
var findResult = expand(insertResult, function (item) {
assert.equal(item.hello, "world")
return findOne(collection, {
hello: "world"
_id: item._id
})
})

Expand Down
4 changes: 2 additions & 2 deletions examples/simple.js
@@ -1,7 +1,7 @@
var uuid = require("node-uuid")
var assert = require("assert")
var fold = require("reducers/fold")
var expand = require("reducers/expand")
var expand = require("reducers/concat")

var mongo = require("..")
var insert = require("../insert")
Expand All @@ -18,7 +18,7 @@ var insertResult = insert(collection, {
var findResult = expand(insertResult, function (item) {
assert.equal(item.hello, "world")
return findOne(collection, {
hello: "world"
_id: item._id
})
})

Expand Down

0 comments on commit 216bc30

Please sign in to comment.