How do I make .returning() return only the inserted value instead of array

Here I have
createResource
to insert a single record. The result from .returning is an array. I am using neon postgres db
image.png
Was this page helpful?