title: Nestjs GraphQL query not running
body: <p>I have the following schema:</p>
  
  <pre><code>type User {
    id: String!
    email: String
  }
  
  type Mutation {
    createUser(input: CreateUserDto!): CreateUserResponseDto!
  }
  
  type Query {
    user(id: Int!): User
  }
  
  input CreateUserDto {
    email: String!
    password: String!
  }
  
  type CreateUserResponseDto {
    id: String!
  }
  </code></pre>
  
  <p>And I have the following resolver:</p>
  
  <pre><code>import {Args, Mutation, Resolver} from '@nestjs/graphql';
  import {UserService} from '../service/user.service';
  import {CreateUserDto, CreateUserResponseDto, UserDto} from '../controller/dto/user.dto';
  import {Query} from '@nestjs/common';
  
  @Resolver('User')
  export class UserResolver {
  
    constructor(private readonly userService: UserService) {
    }
  
    @Mutation()
    async createUser(@Args('input') userDto: CreateUserDto): Promise&lt;CreateUserResponseDto&gt; {
      const userEntity = await this.userService.createUser(userDto);
  
      return {
        id: userEntity.id,
      };
    }
  
    @Query('user')
    async getUser(@Args('id') id: number): Promise&lt;UserDto&gt; {
      const userEntity = await this.userService.findUserById(id);
  
      return {
        id: userEntity.id,
        email: userEntity.email,
      };
    }
  }
  </code></pre>
  
  <p>When running the following query:</p>
  
  <pre><code>{
    user(id: 2) {
      email
    }
  }
  </code></pre>
  
  <p>I am getting the following response:</p>
  
  <pre><code>{
    "data": {
      "user": null
    }
  }
  </code></pre>
  
  <p>And when trying to debug it seems like the call never reaches the resolver.</p>
  
  <p>When trying to run the mutation, all works as expected.</p>
  
  <p>What did I miss?</p>