Skip to content

FR: Firestore OR operator in WHERE query #1624

Closed
@devpato

Description

@devpato

[REQUIRED] Describe your environment
Operating System version: N/A
Firebase SDK version: 4.6.2
Firebase Product: firestore
[REQUIRED] Describe the problem
Rather than having to make several separate queries I would like to see an OR operator for the WHERE query in Firestore. This is something that is currently available in MongoDB or with the $or operator here.

Relevant Code:
The query could look something like this:

citiesRef.where("state", "==", "CA", "||", "state", "==", "AZ")

or better yet

citiesRef.where("state == CA || state == AZ")
I open a new issues since the #321 got closed. People still looking for a solution on that post and haven't heard anything new from Firebase

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions