Hi all,
Can anyone provide some guidance in regards to using graph_ql with fields on custom forms.
I’ve tried lots of different variations to this, and still cannot get the list to populate with any values.
This is my current iteration…
Any pointers would be great.
"shopifyMarket": {
"id": "shopifyMarket",
"name": "shopifyMarket",
"type": "select",
"label": "Shopify Market",
"required": true,
"options": [
{
"items": []
}
],
"resource": {
"virtual": {
"_connectionId": "68fe21adb2c1c834222f53a9",
"asynchronous": true,
"oneToMany": false,
"http": {
"method": "POST",
"formType": "graph_ql",
"isRest": false,
"requestMediaType": "json",
"successMediaType": "json",
"errorMediaType": "json",
"body": "{\"query\":\"query Markets { markets(first: 100, query: \\\"status:'ACTIVE'\\\") { edges { node { id name status } } } }\"}",
"refreshOptionsOnChangesTo": []
},
"http_response": {
"resourcePath": "data.markets.edges"
},
"transform": {
"type": "expression",
"expression": {
"version": "2",
"rulesTwoDotZero": {
"mode": "create",
"mappings": [
{
"generate": "value",
"dataType": "string",
"extract": "$.node.id"
},
{
"generate": "label",
"dataType": "string",
"extract": "$.node.name"
}
]
}
}
}
}
}
}




