title: GraphQL : the object name is defined in resolvers, but not in schema
body: <p>I want to define a mutation using graphql.</p>
  
  <p>My mutation is getting an object as argument. So I defined the new Object in the schema and in the resolver using GraphQLObjectType. </p>
  
  <p>However I m getting this error : </p>
  
  <blockquote>
    <p>Error: Agreement.name defined in resolvers, but not in schema</p>
  </blockquote>
  
  <p>Any idea ?</p>
  
  <p>Here is my Schema definition</p>
  
  <pre><code>const typeDefs = `
  
      type Agreement {
          id: Int
      }
  
      type Mutation {
          agreementsPost(agreement: Agreement) : String
      }
  `;
  </code></pre>
  
  <p>And Here is my resolver : </p>
  
  <pre><code>const appResolvers = {
  
      Agreement: new GraphQLObjectType({
          name: 'Agreement',
          fields: {
              id: { type: GraphQLInt },
          }
      }),
  Mutation: {
  
         agreementsPost(root, args) {
              return axios.post("....").then(res =&gt; res.data);
          },
      }
  </code></pre>