post
comments: hasMany(‘comment’)
comment
post: belongsTo(‘post’) let post = this.modelFor(‘post’);
return post.get(‘comments’);--
You received this message because you are subscribed to the Google Groups "Firebase + EmberJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-embe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm wondering now if there's a good hacky way to denormalize emberfire data by just storing the post's metainfo and storing the comments organized by post IDs.
Currently, I'm using the raw firebase instead to save and retrieve the comments node in this type of structure. But then I won't have the benefits of ember-data when I do that.