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
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