samedhi / firemore

Firebase + Clojure -> Firemore
https://firemore.org/
MIT License
19 stars 3 forks source link

Order of query statements #9

Closed dijonkitchen closed 4 years ago

dijonkitchen commented 5 years ago

Based on the Firestore data model, should the API utilize a map? It looks like the Javascript version gets properties from the collection, then document, then data. I can't tell if you can really re-order the map's keys like a declarative SQL statement and still have it be translated properly for Firestore.

https://github.com/samedhi/firemore/blame/master/README.md#L226-L236

samedhi commented 4 years ago

I am not sure I see what you mean, if you are talking about :where, :order, :limit then those are applied in a particular order regardless of what (order, there is no real order) you specify in the map.