I am using this schema to file upload:
mutation{
uploadImg (file: Upload!): File @resolver(class: "\\Test\\Cgraphql\\Model\\Resolver\\UpImg") @doc(description:"Upload img")
}
But getting error:
Type \"Upload\" not found in document.\n\nException #0 (GraphQL\Error\Error): Type \"Upload\" not found in document.\n#1 GraphQL\Utils\ASTDefinitionBuilder->internalBuildType('Upload',
Please let me know how can we upload image in graphql.