Skip to content

FR: Firestore OR operator in WHERE query #321

Closed
@EpicButterz

Description

@EpicButterz

[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")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions