According to documentation here, metafields can be queried by providing a list of keys
However this graphQL query only return the metafield, and not the metafields (queried with keys)
Query:
{
currentAppInstallation{
metafield(namespace: "features", key: "gad") {
key
value
}
metafields(first: 100, keys: ["features.gad"]){
edges {
node {
namespace
jsonValue
key
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
Response
{
"data": {
"currentAppInstallation": {
"metafield": {
"key": "gad",
"value": "false"
},
"metafields": {
"edges": [],
"pageInfo": {
"hasNextPage": false,
"endCursor": null
}
}
}
},
"extensions": {
"cost": {
"requestedQueryCost": 13,
"actualQueryCost": 4,
"throttleStatus": {
"maximumAvailable": 2000.0,
"currentlyAvailable": 1996,
"restoreRate": 100.0
}
}
}
}