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

Add support for dot notation field names. #8

Closed
jgornick opened this issue Feb 2, 2015 · 3 comments
Closed

Add support for dot notation field names. #8

jgornick opened this issue Feb 2, 2015 · 3 comments

Comments

@jgornick
Copy link

jgornick commented Feb 2, 2015

There doesn't seem to be support for dot notation field names: http://docs.mongodb.org/manual/core/document/#dot-notation

You can currently get around by using the $elemMatch operator.

@kofrasa
Copy link
Owner

kofrasa commented Feb 3, 2015

Mingo already supports the dot notation. Test cases are available for both object field access and array element access.
See https://github.com/kofrasa/mingo/blob/master/test/queries.js#L56

I may have forgotten to document the feature and will do so in the next update. If you have any test case that is failing, please let us know.

@kofrasa kofrasa closed this as completed Feb 3, 2015
@jgornick
Copy link
Author

jgornick commented Feb 3, 2015

@kofrasa Meh, I'm sorry, I should of checked tests first. Thanks and great work!

@kofrasa
Copy link
Owner

kofrasa commented Feb 3, 2015

@jgornick my bad mate. this just reinforces the importance of documentation, so users of the software don't have the need to dive into implementation details to know what is possible or not.

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

2 participants