Skip to content

in comparator: Bug Or Documentation Error? #7029

@tylim88

Description

@tylim88

according to https://firebase.google.com/docs/firestore/query-data/queries#array-contains-any

image

However, after some testing, this statement is not true, it returns empty result

After some experiments, I found out that below statement is also incorrect

image

it should be array that contains EXACTLY west coast AND east coast

another thing is the comparator not-in also works with array type like in in above example, you can do something like query(citiesRef, where('regions', 'not-in', [['west_coast', 'east_coast']])) but is not documented, I think you should add it, seriously

if this is documentation error, don't ask me to submit feedback on the documentation site because you people never change anything and I have no record of what I have submitted. If I leave an issue instead, at least I can look back what is wrong

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions