我有一个Json对象,想要将其转换为graphql查询以便在graphql api上发布请求。请问有人可以提供任何指针吗?我无法继续进行。
JSON object extracted from the POJO:
{
"customer": {
"idFromSource": "123",
"title": "Mrs",
"dateOfBirth": "1980-11-11"
}
}
graphql query that I need to hit a post request:
{
"query": "mutation {updateCustomer(customer:
{idFromSource: \"123\",
title: \"Mrs\",
dateOfBirth: \"1980-11-11\"})
{idFromSource title dateOfBirth}}"
}