When querying with a foreign key a object is retur...
# help
s
When querying with a foreign key a object is returned, how do i change it so it become key-value
Hey guys
That's my query
It returns the follwoing
Can I edit the query so it returns users: { name 'Johnnny boy' } to something like users: 'Johnny Boy' instead?
v
I don't think you can, maybe u can write a postgresql function to do this
s
Yeah
My solution right now is to handle it on the server, modify the response. But thought it would be nifty if it was possible to flatten it when writing the query
2 Views