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

Change the way how the reference data type is handled or make it configurable #215

Closed
wujekbogdan opened this issue Oct 3, 2018 · 1 comment

Comments

@wujekbogdan
Copy link
Contributor

In Firestore there's a Reference data type. When a document that contains references fields is bound by Vuefire, then Vuefire, under the hood, queries all referenced documents and converts referencecs into actual data. This is a nice feature but it has some negative implications:

  • The reference is lost. We no longer have an access to it.
  • It performs additional queries, that might be inefficient when large collections are queried.

So it would be great if this behaviour could be configured, or at least if references were not lost - maybe refernces could be added as an non-enumerable properties (the same way as documents' ids are added to objects)?

@posva
Copy link
Member

posva commented Oct 3, 2018

Check #153
By default it binds 2 level nested references but you can set it to 0

@posva posva closed this as completed Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants