Search code examples
firebasegoogle-cloud-platformgoogle-cloud-firestorezapier

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


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.


Solution

  • The query that you are looking for looks like this:

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