my database on firestore looks like this:
Candidates
|
|______ID_1
| |_______likeDislikeSuper
| | |___________ID_1
| ( data ) |_______value: n
|
|______ID_2
| |_______likeDislikeSuper
| | |___________ID_2
| ( data ) |_______value: n
i want retrieve (data) from candidates where value == n
firestore()
.collection('candidates')
.where('candidates/ID_1/likeDislikeSuper/ID_1', '==', 'n')
.get();
**Candidates is a Collection, ID's are doc's, likeDislikeSuper is a subcollection of Candidates.
so... first params of where
is a camp value
, not support a path
does anyone know any way around this problem?
how could I return candidate documents using that value as a filter?