Hi guys! How do I remove the square brackets in th...
# prisma-client
a
Hi guys! How do I remove the square brackets in there? I want it to look like a json object.
a
if it's possible to use a findUnique query that would return a single object, not an array
alternatively you could use a findMany and then respond with users[0]
a
Ya but name is inside users
a
oh i didn't notice that
can you share that part of your schema? is name a connected object?
should be able to update your schema and make the users -> name 1:1
a
I had to process it outside the response but I'm curious if it can be done on prisma