I see, could I do it without info?
# prisma-whats-new
r
I see, could I do it without info?
n
It depends on what you want to do, instead of passing the
info
object you can also pass a string that contains the selection set for the query.
I also recommend you to check ou this article to get a better understanding of what the
info
object actually does
r
thanks Nikolas, what article?
what if I just need the id?
If you only need the
id
you can do this:
await ctx.db.query.user({ where: { providerId: data.id}}, '{ id }')
r
that works, thanks!
🙌 1