title: Creating Mutations In Nestjs Using The Code First approach
body: <p>I am in the process of creating a graphql api that is built on Nestjs (code first approach) and prisma for the database management. I have followed nestjs' official page and have successfully created the resolver for housing my queries, subscriptions and mutations. My first Query is working correctly without any problems. However after creating a mutation, the created mutation don't prompt for any parameters and the graphql playground does not indicate errors in my mutation request. 
  This mutation is responsible for creating a user and is supposed to take two parameters for the successful completion of the operation. </p>
  
  <p>i have tried re-creating the mutation using the schema first approach but the app crashes during start up. I also tried adding a name property to the mutation but still nothing happens.</p>
  
  <p>This is my mutation</p>
  
  <pre><code>@Mutation(returns =&gt; User, { name: 'createUser' })
    async createUser(args) {
      return await this.userService.createUser(args);
    }
  </code></pre>
  
  <p>and in the user service </p>
  
  <pre><code>  async create(args) {
      return await this.prismah.mutation.createUser({
        name: args.name,
        email: args.email,
      });
    }
  </code></pre>
  
  <p>the mutation should prompt for two parameters before submision and after submision it should create a user instance in the db</p>