by default a successful post to the database only returns the ID of the newly created record.
I'd recommend using platform.api in a post process script to perform a GET on your database service filtering by id (or doing get by id) with the url parameter related=* to get all the related data in the call as well.
Then return that to the client rather than the typical event.response.
↧
Return full object in response via post.post_process script (DF 1.9)
↧