Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: get doc of sub-collections at once #572

Open
mohshraim opened this issue Mar 18, 2018 · 1 comment
Open

FR: get doc of sub-collections at once #572

mohshraim opened this issue Mar 18, 2018 · 1 comment

Comments

@mohshraim
Copy link

[REQUIRED] Describe your environment

  • Operating System version: JS
  • Firebase SDK version: 4.11
  • Firebase Product: firestore

[REQUIRED] Describe the problem

if we have some data like;

  • collection-department

    • dept1
      • collection-employee
        • emp2
        • emp1
    • dept2
      • collection-employee
        • emp5
        • emp8
    • dept3
      • collection-employee
        • emp6
        • emp10
  • another-collection

if we want the employees in dept1
db.collection('/collection-department/dept1/collection-employee').get()

we need to get all employees in all department in one request; something like
db.collection('/collection-department/*/collection-employee').get()

my case is efferent but this sample for explanation.. that we cant USE the sub collection feature if we miss this option.. our scenario have a thousand of document that share the same sub-collection and we need to get the data in single request not doing a thousands one...

Thanks

@mikelehen
Copy link
Contributor

Thanks for the feedback @mohshraim. This type of query is definitely on our roadmap, but unfortunately I don't have any ETA for when it'll be available. I totally agree that we need this to make subcollections fully useful though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants