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
I came across this error when migrating from v1 of apollo-server-express to v2, the error had to do with Uploads not being defined in schema. Now when declaring you graphql schema you can use the option set uploads: false
// GraphQL: Schema
const SERVER = new ApolloServer({
typeDefs: typeDefs,
resolvers: resolvers,
introspection: true,
uploads: false,
playground: {
endpoint: `http://localhost:3000/graphql`,
settings: {
'editor.theme': 'light'
}
}
});
Appears to solve the issue in this case if your error is Uploads
specific