Skip to content

verify array is not None in collection for array_contains condition - #3

Merged
flrngel merged 1 commit into
ainbr:masterfrom
Some1Somewhere:verify-array-not-none
Feb 16, 2026
Merged

verify array is not None in collection for array_contains condition#3
flrngel merged 1 commit into
ainbr:masterfrom
Some1Somewhere:verify-array-not-none

Conversation

@Some1Somewhere

@Some1Somewhere Some1Somewhere commented Jun 26, 2025

Copy link
Copy Markdown

This PR updates the array_contains filter logic to avoid returning None when the field being queried is missing (None). Instead, it ensures that the filter behaves consistently with Firestore’s behavior—by excluding the document from results rather than erroring or returning None.

Fixes : mdowds#66

Saw fix in https://github.com/mdowds/python-mock-firestore/pull/67/files
Could you either merge my PR or the above to your fork?
Using your fork since it's better maintained than the original.

@flrngel
flrngel merged commit 35e193c into ainbr:master Feb 16, 2026
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.

array_contains throws exception if array in colelction is none

2 participants