Hi guys i’m using prisma bindings (similar to pris...
# orm-help
m
Hi guys i’m using prisma bindings (similar to prisma client). I need to add extra data to the response that has nothing to do with the queried data, how can i achieve this? eg: when i do this in the resolver:
Copy code
return { ...(await prisma.query.user({ where: { id } }, info), metadata }
metadata isn’t in the reponse if i take a look at it... Ideally i would love to have an extra key in the JSON reponse next to “data”
n
You need to declare that extra data in the schema and define the resolver for it.
m
ah ok! spanks!