I am using REST API GET with payload ( passing input params ) and it returns with JSON response. I need to convert it into GraphQL, I have the schema and types defined, but how to merge GET request payload along with GraphQL query JSON and process it to get the desired response back?
Example GET: http://localhost/myproject/getAllCustomers
payload :
{
"name":"Harish"
"passion":"reading"
}
GraphQL query :
{
customer {
name
age
city
}
}