Hello I'm trying to deploy a file + few more fields as a payload using GraphQL + NestJS
Currently InputType looks like this
@InputType()
export class CreateONSInput {
@Field()
signature: string;
@Field()
message: string;
@Field()
ons: string;
@Field((type) => [AccountInfoInput])
accountInfo: AccountInfoInput[];
@Field((type) => GraphQLUpload)
file: Promise<FileUpload>;
}
And I'm Using Altair GraphQL Client as a playground from which I'm sending this:
Issue is that it throws Field \"file\" of required type \"Upload!\" was not provided.", any idea how to do it?
