title: GraphQL mutation without sub section
body: <p>I want to send graphql mutation request without sub section</p>
  
  <pre class="lang-js prettyprint-override"><code>mutation _ {
      updateCurrentUser(fullName: "Syava", email: "fake@gmail.com")
  }
  </code></pre>
  
  
  
  <p>and I am getting</p>
  
  <pre class="lang-js prettyprint-override"><code>{
    "errors": [
      {
        "message": "Field \"updateCurrentUser\" of type \"User\" must have a sub selection.",
        ... 
      }
    ]
  }
  </code></pre>
  
  
  
  <p>add { id } to request works fine but I don't want</p>
  
  <p>Also Schema code
  </p>
  
  <pre><code>const userType = new GraphQLObjectType({
    name: 'User',
    fields: () =&gt; ({
      id: { type: new GraphQLNonNull(GraphQLString) },
      fullName: { type: GraphQLString },
      email: { type: GraphQLString },
    }),
  });
  
  type: userType,
    args: {
      fullName: { type: GraphQLString },
      email: { type: new GraphQLNonNull(emailType) },
      password: { type: GraphQLString },
    },
    resolve: async (root, { fullName, email, password }, { rootValue }) =&gt; {
      const user = await User.findById(rootValue.req.user.id);
  
      ...
  
      return user;
    },
  </code></pre>