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

Implement $eq support for sub document #96

Closed
maheshrajamani opened this issue Feb 10, 2023 · 2 comments
Closed

Implement $eq support for sub document #96

maheshrajamani opened this issue Feb 10, 2023 · 2 comments

Comments

@maheshrajamani
Copy link
Contributor

Extend $eq operator support for elements of object (sub document) type.
Eg:
Match the documents which has an element for the given field which is of object type whose value match the exactly to the subdocument provided in the filter.
{ "find" : { "filter" : { "field" : { "$eq" : {"a" : "b"}} } } }

This should also work for short cut equals
{ "find" : { "filter" : { "field" : {"a" : "b"} } } }
This will corresponds to CQL where clause as WHERE array_equals['field'] = hash( {"a" : "b"})

@amorton
Copy link
Contributor

amorton commented Feb 14, 2023

@maheshrajamani I just wanted to check - this was a typo: This will corresponds to CQL where clause as WHERE array_equals['field'] = hash( {"a" : "b"}) It should be the subdoc_equals column in the table.

@maheshrajamani
Copy link
Contributor Author

@amorton Yes it's a typo it should have been WHERE sub_doc_equals['field'] = hash( {"a" : "b"})

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