Skip to content
Browse files

use _id

  • Loading branch information...
1 parent 0ece7f0 commit 216bc30144b195efdefa5adac6558c24013ef304 @Raynos committed Jan 5, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 examples/simple.js
View
2 README.md
@@ -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
})
})
View
4 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")
@@ -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
})
})

0 comments on commit 216bc30

Please sign in to comment.
Something went wrong with that request. Please try again.