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

Clarity about find(); #234

Closed
nolochemical opened this issue Oct 2, 2017 · 2 comments
Closed

Clarity about find(); #234

nolochemical opened this issue Oct 2, 2017 · 2 comments

Comments

@nolochemical
Copy link

Was wondering if someone could elaborate on find() regarding the example below. Read #43; yet wanted to have definitive clarity.

Coll.find({ email: { $eq: "a@b.com" } })
vs
Coll.find({ email: "a@b.com" })

@Irrelon
Copy link
Owner

Irrelon commented Oct 3, 2017

@nolochemical Both queries above behave in the exact same way. The second is slightly more performant because it doesn't require another recursion to scan the query object.

@nolochemical
Copy link
Author

Ahh, I see thanks for the clarity. I really like the amount of options available with the lib. Kudos

@Irrelon Irrelon closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants