'throw new error(errors.map((error) => error.message).join('\n\n'));

throw new Error(errors.map((error) => error.message).join('\n\n')); ^

Error: The type of Mutation.signinUser(userSignin:) must be Input Type but got: UserSigninInput. at assertValidSchema (E:\ecommerce\server\node_modules\graphql\type\validate.js:59:11) at assertValidExecutionArguments (E:\ecommerce\server\node_modules\graphql\execution\execute.js:194:35) at execute (E:\ecommerce\server\node_modules\graphql\execution\execute.js:113:3) at generateSchemaHash (E:\ecommerce\server\node_modules\apollo-server-core\dist\utils\schemaHash.js:15:44) at ApolloServer.generateSchemaDerivedData (E:\ecommerce\server\node_modules\apollo-server-core\dist\ApolloServer.js:357:64) at Object.schemaDerivedDataProvider (E:\ecommerce\server\node_modules\apollo-server-core\dist\ApolloServer.js:141:65)
at new SchemaManager (E:\ecommerce\server\node_modules\apollo-server-core\dist\utils\schemaManager.js:21:44) at new ApolloServerBase (E:\ecommerce\server\node_modules\apollo-server-core\dist\ApolloServer.js:139:32) at new ApolloServer (E:\ecommerce\server\node_modules\apollo-server-express\dist\ApolloServer.js:13:1) at new ApolloServer (E:\ecommerce\server\node_modules\apollo-server\dist\index.js:31:9)



Solution 1:[1]

*now i solve this error now i tell you how can solve this error i had check my typedefs file and my mistake was type UserInput so now it is userinput not type it is input write input UserInput after that solve error

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Adventure of world