You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure but I think there is a very important feature missing. What I am trying to do is addCollectionSnapshotListener on collectionGroup query.
Such a thing can be done with javascript firebase library like this: const resources = query(collectionGroup(getFirestore(), 'resources')); onSnapshot(resources, (querySnapshot) => { querySnapshot.forEach((doc) => { console.log(doc.data()); }); });
I made a quick glance at addCollectionSnapshotListener web code and I think whole function can be copied and only change that is needed is on line 212 where 'collecion' should be changed to 'collectionGroup'.
Let me know if you have any questions. I am currently working on other issues, so it will take some time until I get to this issue. You can also sponsor the issue if you want me to prioritize it.
Plugin(s)
Current problem
I am not sure but I think there is a very important feature missing. What I am trying to do is addCollectionSnapshotListener on collectionGroup query.
Such a thing can be done with javascript firebase library like this:
const resources = query(collectionGroup(getFirestore(), 'resources'));
onSnapshot(resources, (querySnapshot) => {
querySnapshot.forEach((doc) => {
console.log(doc.data());
});
});
Preferred solution
Since there already are getCollection, addCollectionSnapshotListener and getCollectionGroup functions in API, I would suggest addCollectionGroupSnapshotListener function is added.
I made a quick glance at addCollectionSnapshotListener web code and I think whole function can be copied and only change that is needed is on line 212 where
'collecion'
should be changed to'collectionGroup'
.Alternative options
No response
Additional context
No response
Before submitting
The text was updated successfully, but these errors were encountered: