GraphQLのオペレーション定義フォーマット
GraphQLでオペレーションをJSON形式で定義するフォーマットがある。具体例は以下の通り。
{ "format": "apollo-persisted-query-manifest", "version": 1, "operations": [ { "id": "c228855819dcdfde20cfa57696994b8c796e3f9ebdc2d6866d75798438bcfa91", "body": "query Operation1($arg: String!) { ... }", "name": "Operation1", "type": "query" }, { "id": "c0664f9a8f69fa1744779bab903b46810bc560b97e93c9ae8602eb835cebf7ab", "body": "mutation UpdateEvent($eventId: String!, $resultCode: String!) { ... }", "name": "UpdateEvent", "type": "mutation" } ]}このフォーマットはApollo Persisted Query Manifestというらしい。
このうち operations に格納されるJSONオブジェクトはOperation Request Formatと呼ばれる。