Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_id from findOne is not ObjectID #268

Open
luckymark opened this issue Oct 14, 2018 · 0 comments
Open

_id from findOne is not ObjectID #268

luckymark opened this issue Oct 14, 2018 · 0 comments

Comments

@luckymark
Copy link

it.only("", async () => {
  await db.get("ttt").insert({ name: "bbb", otherId: new ObjectID() })
  let a = await db.get("ttt").findOne({ name: "bbb" })
  try {
    expect(a._id instanceof ObjectID).true
    expect(a.OtherId instanceof ObjectID).true
  } catch (e) {
    console.log(e)
  }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant