The backend API implementation is expecting an array of Long .
I need to pass the value through front-end which is a GraphQL implementation. Initially I have the value as a string and want to convert it to an array of Long so that it is compatible with the API. I have tried the following:
input1 = [JSON.parse(input1)]
The desired payload should be as follows where 140 is a "Long"
"rolls": [140]
I currently see my graphQL query variables as follows where 140 is a string.
rolls: 140