Tag: graphql-upload
-
I’m getting an error when I try to upload in GraphQL: “POST body missing, invalid Content-Type, or JSON object has no keys.”
0 My code is correct, but I don’t know what’s happening, I need to upload it with graphQL but I can’t, my resolver code looks like this: `import { Resolver, Query, Mutation, Arg } from "type-graphql"; import { GraphQLUpload, FileUpload } from "graphql-upload-ts"; @Resolver() export class CategoryResolver { @Mutation(() => String) async uploadImage(@Arg("file", () =>…