I've encountered an issue while trying to execute a simple Mutation for uploading an image. The error I keep facing is: "Error: There can be only one type named 'Upload'."
Here's the snippet of my code:
import { FileUploadI, GraphQLUpload } from 'graphql-upload'
@Mutation(() => Picture)
async uploadPicture(@Arg('data', () => GraphQLUpload) data: FileUploadI): Promise<Picture> {
//.. implementation
}
My setup includes Apollo and Express as Server, and I'm working with Typescript along with Type-Graphql.