Closed ahmedshahd closed 1 year ago
Sorry, but I don't have availability to help people debug their project code. I can only accept bug reports with minimum reproduction steps for issues that are specific to the graphql-upload
middleware malfunctioning on the server. It's not clear that your problem relates to that; maybe your client isn't sending a correct GraphQL multipart request to the server.
You can use Upload
scalar in as many places as you like in mutation arguments; you just need to remember to actually set all the right file values in the variables when you submit a mutation.
type Mutation { createWellnessTip( createWellnessTipInput: CreateWellnessTipInput! attachment: [Upload] image: Upload ): WellnessTip! }
When attempting to upload both an attachment and an image in the same mutation using graphql-upload, the attachment and image fields in the resolver are received as null. This issue doesn't occur when uploading either attachment or image alone.
when i log the attachment and image in resolver i got their value in null image null attachment [ null, null, null, null ]
i am using "graphql-upload": "11.0.0",