{"action":"created","issue":{"url":"https://api.github.com/repos/typicode/json-server/issues/697","repository_url":"https://api.github.com/repos/typicode/json-server","labels_url":"https://api.github.com/repos/typicode/json-server/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/typicode/json-server/issues/697/comments","events_url":"https://api.github.com/repos/typicode/json-server/issues/697/events","html_url":"https://github.com/typicode/json-server/issues/697","id":280882427,"node_id":"MDU6SXNzdWUyODA4ODI0Mjc=","number":697,"title":"Nested POST bug","user":{"login":"ericcheunghk01","id":32050957,"node_id":"MDQ6VXNlcjMyMDUwOTU3","avatar_url":"https://avatars2.githubusercontent.com/u/32050957?v=4","gravatar_id":"","url":"https://api.github.com/users/ericcheunghk01","html_url":"https://github.com/ericcheunghk01","followers_url":"https://api.github.com/users/ericcheunghk01/followers","following_url":"https://api.github.com/users/ericcheunghk01/following{/other_user}","gists_url":"https://api.github.com/users/ericcheunghk01/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcheunghk01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcheunghk01/subscriptions","organizations_url":"https://api.github.com/users/ericcheunghk01/orgs","repos_url":"https://api.github.com/users/ericcheunghk01/repos","events_url":"https://api.github.com/users/ericcheunghk01/events{/privacy}","received_events_url":"https://api.github.com/users/ericcheunghk01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-11T03:20:42Z","updated_at":"2018-07-04T00:21:40Z","closed_at":null,"author_association":"NONE","body":"``` db.json\r\n\"posts\": [\r\n  {\r\n    \"userId\": 1,\r\n    \"id\": 1,\r\n    \"title\": \"sunt aut facere repellat provident occaecati excepturi optio reprehenderit\",\r\n    \"body\": \"quia et suscipit\\nsuscipit recusandae consequuntur expedita et cum\\nreprehenderit molestiae ut ut quas totam\\nnostrum rerum est autem sunt rem eveniet architecto\"\r\n  }\r\n]\r\n```\r\n\r\n``` db.json\r\n\"comments\": [\r\n  {\r\n    \"postId\": 1,\r\n    \"id\": 1,\r\n    \"title\": \"sunt aut facere repellat provident occaecati excepturi optio reprehenderit\",\r\n    \"body\": \"quia et suscipit\\nsuscipit recusandae consequuntur expedita et cum\\nreprehenderit molestiae ut ut quas totam\\nnostrum rerum est autem sunt rem eveniet architecto\"\r\n  }\r\n]\r\n```\r\n\r\nThe problem is while I posting this route `/api/posts/1/comments`,\r\nAll comments part `postId` created will be a string type, so I can't explore new created data with `/api/posts/1?_embed=comments`\r\n\r\n``` example result\r\n{\r\n    \"title\": \"Some Title\",\r\n    \"description\": \"Some description\",\r\n    \"name\": \"Test\",\r\n    \"createdAt\": 1512962107213,\r\n    \"postId\": \"1\", // string\r\n    \"id\": 501\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/typicode/json-server/issues/comments/402327386","html_url":"https://github.com/typicode/json-server/issues/697#issuecomment-402327386","issue_url":"https://api.github.com/repos/typicode/json-server/issues/697","id":402327386,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjMyNzM4Ng==","user":{"login":"afirulaf","id":5363044,"node_id":"MDQ6VXNlcjUzNjMwNDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5363044?v=4","gravatar_id":"","url":"https://api.github.com/users/afirulaf","html_url":"https://github.com/afirulaf","followers_url":"https://api.github.com/users/afirulaf/followers","following_url":"https://api.github.com/users/afirulaf/following{/other_user}","gists_url":"https://api.github.com/users/afirulaf/gists{/gist_id}","starred_url":"https://api.github.com/users/afirulaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afirulaf/subscriptions","organizations_url":"https://api.github.com/users/afirulaf/orgs","repos_url":"https://api.github.com/users/afirulaf/repos","events_url":"https://api.github.com/users/afirulaf/events{/privacy}","received_events_url":"https://api.github.com/users/afirulaf/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T00:21:40Z","updated_at":"2018-07-04T00:21:40Z","author_association":"NONE","body":"Yup also having this issue. Using embed child wont return the same result as entering the endpoint on browser. @typicode "}}
{"actor":{"display_login":"afirulaf"}}