GraphQL : the object name is defined in resolvers, but not in schema

后端 未结 4 1216
说谎
说谎 2021-02-20 00:01

I want to define a mutation using graphql.

My mutation is getting an object as argument. So I defined the new Object in the schema and in the resolver using GraphQLObjec

4条回答
  •  时光说笑
    2021-02-20 00:40

    In my case it happens because there is inconsistent in schema for non-null. in my mutation I don't have the non-null mutation while in the object schema it has non-null mutation.

提交回复
热议问题