graphql function
Implementation
Future<dynamic> graphql({
required ExecuteCommandFunction exec,
required String query,
}) async {
final out = await exec(ExecuteCommandInput(
command: "fig",
args: [
"_",
"request",
"--route",
"/graphql",
"--method",
"POST",
"--body",
jsonEncode({"query": query}),
],
));
return jsonDecode(out.stdout)['data'];
}