Emberjs embedded records with firebase not working


#1

I’m trying to add embedded records into fire base with the ember fire adapter without any luck. So I’ve got a post and a comment I would like it so it’s looks like this in firebase:

{
  "posts": {
    "post_id_1": {
      "comments": {
        "comment_id_1": {
          "body": "This is a comment"
        }
      }
    }
  }
}

instead of:

{
  "posts": {
    "post_id_1": {
      "comments": {
        "comment_id_1": true
      }
    }
  },
  "comments": {
    "comment_id_1": {
      "body": "This is a comment",
      "post": "post_id_1"
    }
  }
}

I’ve tired following the documentation Docs but can only get the Async working but the not the embedded relationship to work. I’m working with an existing fire base database so I can’t change the data structure on the backend it needs to be in the embedded format.

Finally is this best of way of doing this or is there a better way of doing?