You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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",
The text was updated successfully, but these errors were encountered:
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",
The text was updated successfully, but these errors were encountered: