Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.36 KB

relationships.md

File metadata and controls

42 lines (29 loc) · 1.36 KB

Relationships

EmberFire can handle relationships in several different ways:

  1. hasMany will query for matching records in a root collection
  2. hasMany with the query: ref => ref allows you to alter to assumed query
  3. hasMany with the subcollection: true option will query records in a Firestore subcollection
  4. hasMany with the subcollection: true, query: ref => ref similarly allows you tack on a subcollection query
  5. hasMany with the embedded: true option will embed the records in the Firestore document
  6. belongsTo will query for matching records in a root collection
  7. belongsTo with the query: ref => ref option 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

Continue reading

  1. Installation
  2. User Authentication
  3. Collect Analytics
  4. Saving and Retrieving Data
  5. Querying Data
  6. Relationships
  7. Security Rules
  8. Deploying to Firebase Hosting
  9. Fastboot support
  10. Deploying to Cloud Functions for Firebase