Return full object in response via post.post_process script (DF 1.9)

Full disclosure, I’m on 1.9…

I need some data from the response to a POST, but all I’m getting back is the default from DF:

{
    "record":    [
        {
            "id": 1
        }
   ]
}

How can I get the full object returned with related data?

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.