Description
Do you want to request a feature or report a bug?
Bug
(If this is a usage question, please do not post it here—post it on gitter. If this is not a “feature” or a “bug”, or the phrase “How do I...?” applies, then it's probably a usage question.)
What is the current behavior?
FieldPath
does not exist on FieldPath
when retrieving via the useFirestore
hook.
What is the expected behavior?
Trying to retrieve multiple documents in one go via in
inside useFirestoreConnect
e.g. this should work:
const firestore = useFirestore();
useFirestoreConnect(() => [{
collection: 'examples',
where: [firestore.FieldPath.documentId(), 'in', ['a', 'b']],
storeAs: 'examples'
}]);
But the only property that exists on FieldPath
currently is isEqualTo
.
If I try to use firebase
directly e.g.
import firebase from '../settings';
useFirestoreConnect(() => [{
collection: 'examples',
where: [firebase.firestore.FieldPath.documentId(), 'in', ['a', 'b']],
storeAs: 'examples'
}]);
I get a ton of type issues and cannot proceed.
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
Latest Stable (3.10.0)