EnsembleUI / ensemble

Build native apps 20x faster than Flutter, RN or any other tech
https://ensembleui.com/
BSD 3-Clause "New" or "Revised" License
120 stars 15 forks source link

Ability to use orderBy and where together in a Firestore query #1396

Closed amin-nas closed 5 months ago

amin-nas commented 5 months ago

When I combine both orderBy and where, the Firestore API no longer works.

example:


  getStandings:
    inputs:
      - competitionId
      - calendarId
      - groupStandingId
    type: firestore
    path: sports/soccer/competitions/8tddm56zbasf57jkkay4kbf11/tournamentCalendar/cnqwzc1jx33qoyfgyoorl0yqx/standings/fai8inwfihwwmtle43ujk0br/division
    query:
      where:
        - field: type
          operator: ==
          value: total
      orderBy:
        - horizontal
amin-nas commented 5 months ago

This query requires an index to be set on Firebase.