lurodrigo / firestore-clj

An unofficial Firestore API for Clojure. Provides tools for doing single pulls and writes, streaming real-time data, batched writes and transactions.
MIT License
42 stars 8 forks source link

Pass first element in q vector to (firestore) #8

Closed torbjornvatn closed 1 year ago

torbjornvatn commented 3 years ago

The map! docstring states "Updates all docs in a vector or query by applying a function to them" , but the (firestore q) call fails if q is a vector. That's because (firestore) expects a single DocumentReference. So I fetch the first document reference if the vector and passes that to (firestore) instead