Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Implement subcollection support in Firestore #2415

Closed
dmitry-s opened this issue Jun 4, 2020 · 3 comments
Closed

Implement subcollection support in Firestore #2415

dmitry-s opened this issue Jun 4, 2020 · 3 comments
Assignees
Labels
firestore Firestore Native mode support P2

Comments

@dmitry-s
Copy link
Contributor

dmitry-s commented Jun 4, 2020

User request: https://stackoverflow.com/questions/62043573/how-to-fetch-documents-from-subcollection-in-firestore-using-spring-data/

Currently we support embedded collections, but Firestore has one more type of associated collections, called subcollections. That feature allows loading the collection independently from the parent document.

@dmitry-s dmitry-s added P2 firestore Firestore Native mode support labels Jun 4, 2020
@dmitry-s dmitry-s self-assigned this Jun 4, 2020
dmitry-s added a commit that referenced this issue Jun 26, 2020
* Add subcollection support for FirestoreTemplate; Partially addresses #2415
@theHilikus
Copy link

Is the only way today to use firestore subcollections to use FirestoreTemplate or is it possible to create a Repository extending FirestoreReactiveRepository that supports subcollection documents?
Looking at the sample code and the PR, it seems the answer is the former, but i want to confirm if i'm missing something

@dmitry-s
Copy link
Contributor Author

@theHilikus you are right, currently we only support FirestoreTemplate way. Please create a ticket if you are interested in an alternative way of accessing subcollections, so we can discuss it.

And also, contributions are welcome!

Thanks

@meltsufin
Copy link
Contributor

Partially fixed in #2415. Please re-open if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestore Firestore Native mode support P2
Development

No branches or pull requests

3 participants