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 arrayContains in where #69

Merged
merged 1 commit into from
Apr 11, 2020

Conversation

qwales1
Copy link
Contributor

@qwales1 qwales1 commented Apr 9, 2020

Adds support for arrayContains. This assumes that the correct behavior for using arrayContains on a field that is not of an array type is to not match any documents. This appears to be how it works in the JS SDK at least but I could not find a reference that explicitly states that.

@atn832
Copy link
Owner

atn832 commented Apr 11, 2020

Very nice. That's exactly what the documentation for the Android library states (link).

I'll submit your PR now. When you get a chance, could you paste the same unit tests into https://github.com/atn832/cloud_firestore_mocks/blob/master/test_driver/cloud_firestore_behaviors.dart? This ensures that cloud_firestore_mocks behaves the same as the real Firestore and Firestore emulator. I've filed #71 to keep track of it.

Thanks again for your pull request, @qwales1!

@atn832 atn832 merged commit a63fb0b into atn832:master Apr 11, 2020
@atn832
Copy link
Owner

atn832 commented Apr 26, 2020

Btw, I just published your PR. It is live at https://pub.dev/packages/cloud_firestore_mocks#043. Thanks!

@qwales1 qwales1 deleted the support-array-contains branch April 26, 2020 21:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants