using nexus schema, do I need to export mutations ...
# graphql-nexus
w
using nexus schema, do I need to export mutations and add them to types key of makeSchema? They don’t appear in playground until I do it. I thought
Copy code
extendType({
  type: 'Mutation',
  definition(t) {
    t.field('sendMessage', {
      type: 'Message',
was enough
r
Yeah you need to add them to the types.
w
thanks!
💯 1
I’m migrating from nexus framework and I don’t think this is mentioned here https://nexusjs.org/docs/adoption-guides/neuxs-framework-prisma-users, might be worth adding it
💯 1
You were looking at the nexus Prisma plugin doc 😀