In my resolvers should I pass the info as well? (a...
# orm-help
z
In my resolvers should I pass the info as well? (and why?)
Copy code
export default {
  Query: {
    user: (parent, { id }, { database }) =>
      database.query.user({ where: { id } })
  }
}
n
are you using
prisma-binding
or Prisma Client?
z
prisma-binding
n
the answer to "should you" cannot be given by anyone else than you 🙂 but yea, you can.