Home > front end >  How do I write a OrderBy query when setting up a trigger between Zapier and FireStore Collection
How do I write a OrderBy query when setting up a trigger between Zapier and FireStore Collection

Time:01-05

As the title states, I am trying to connect my Firestore collection to my Zapier with a trigger. I am confused about how I should write the query though.

Zapier Screen Shot

I understand I need to write an orderby query but I don't understand how I should write it. Here is my collection.

Fire Store Collection Screenshot

I added the Time Object to be used by OrderBy, but I am not sure how to use it.

CodePudding user response:

The query that you are looking for looks like this:

"orderBy": [{
    "field": {
        "fieldPath": "Time"
    },
    "direction": "DESCENDING"
}]
  •  Tags:  
  • Related