Shopify Discount App

New Member
4 0 0

i am building an app for shopify Store which is Discount App , am using react Apollo and fetch Data using Graphql query and Mutation. i have faced a problem many time and i dont go ahead for further process to complete this app . Problem is that when is access single id and update discount price it is excellently done but when i pass multiple ids through variables which is required attribute for graphql mutation . How can i pass multiple ids in input variable in mutation graphql.

Error ScreenShoot :-

Screenshot 2021-05-12 160029.png 

code where i get ids and discount price :-


and the main area here i pass te id and discount price through variables to Graphql Mutation :-

code 2.png

please help me to overcome this issue . Thanks....!