Relationships
October 5, 2019 ยท View on GitHub
EmberFire can handle relationships in several different ways:
hasManywill query for matching records in a root collectionhasManywith thequery: ref => refallows you to alter to assumed queryhasManywith thesubcollection: trueoption will query records in a Firestore subcollectionhasManywith thesubcollection: true, query: ref => refsimilarly allows you tack on a subcollection queryhasManywith theembedded: trueoption will embed the records in the Firestore documentbelongsTowill query for matching records in a root collectionbelongsTowith thequery: ref => refoption allows you to modify the assumed query
hasMany
Embedded records
... TODO
Subcollections
... TODO
belongsTo
.. TODO
Cleaning up relationships
... TODO note about using Cloud Functions for this