0

There's a way to post the full related object? For example, I need a full post object when a post a comment, not just the post id:

Instead of:

{
   comment_id: 1,
   text: "my comment",
   post: 1
}

I need:

{
   comment_id: 1,
   text: "my comment",
   post: {
      post_id: 1,
      title: "Post Title"
   } 
}
Paulo Brito
  • 453
  • 1
  • 5
  • 15
  • unclear what you are asking. – Debug Diva May 09 '17 at 17:06
  • My problem is ng-admin reference field. In the example above, I'm creating a Comment object, referencing a Post object. When a click "Save", the Json sent to the server is like the first one above. I need it to send like the second. – Paulo Brito May 09 '17 at 18:27
  • After a while, a moved to admin-on-rest, a ReactJS encarnation of ng-admin. This question can be closed. – Paulo Brito Mar 05 '18 at 11:34

0 Answers0