I couldn't find a way to pass query variables to my graphql query, I've made a query which I think is how I'd be able to do mutation
mutation UpdateItem($datasource: String!, $language: String!, $fields: String!) {
updateItem(
path: $datasource
language: $language
fields: $fields
){
... on SampleItem {
title {
value
}
}
}
}
but I couldn't figure out how to pass my query variables.
I found this in the stackexchange How to pass a variable to search context? but I couldn't find the GraphQLData library
Any enlightenment on this matter would be greatly appreciated, Thanks in advance!