--- source: apollo-router/tests/set_context.rs expression: response --- { "data": { "t": { "__typename": "T", "id": "1", "u": { "__typename": "U", "field": 1234 } } }, "extensions": { "apolloQueryPlan": { "object": { "kind": "QueryPlan", "node": { "kind": "Sequence", "nodes": [ { "authorization": { "is_authenticated": false, "policies": [], "scopes": [] }, "contextRewrites": null, "id": null, "inputRewrites": null, "kind": "Fetch", "operation": "query Query__Subgraph1__0{t{__typename prop id u{__typename id}}}", "operationKind": "query", "operationName": "Query__Subgraph1__0", "outputRewrites": null, "schemaAwareHash": "0163c552923b61fbde6dbcd879ffc2bb887175dc41bbf75a272875524e664e8d", "serviceName": "Subgraph1", "variableUsages": [] }, { "kind": "Flatten", "node": { "authorization": { "is_authenticated": false, "policies": [], "scopes": [] }, "contextRewrites": [ { "kind": "KeyRenamer", "path": [ "..", "... on T", "prop" ], "renameKeyTo": "contextualArgument_1_0" } ], "id": null, "inputRewrites": null, "kind": "Fetch", "operation": "query Query__Subgraph1__1($representations:[_Any!]!$contextualArgument_1_0:String){_entities(representations:$representations){...on U{field(a:$contextualArgument_1_0)}}}", "operationKind": "query", "operationName": "Query__Subgraph1__1", "outputRewrites": null, "requires": [ { "kind": "InlineFragment", "selections": [ { "kind": "Field", "name": "__typename" }, { "kind": "Field", "name": "id" } ], "typeCondition": "U" } ], "schemaAwareHash": "e64d79913c52a4a8b95bfae44986487a1ac73118f27df3b602972a5cbb1f360a", "serviceName": "Subgraph1", "variableUsages": [ "contextualArgument_1_0" ] }, "path": [ "", "t", "u" ] } ] } }, "text": "QueryPlan {\n Sequence {\n Fetch(service: \"Subgraph1\") {\n {\n t {\n __typename\n prop\n id\n u {\n __typename\n id\n }\n }\n }\n },\n Flatten(path: \".t.u\") {\n Fetch(service: \"Subgraph1\") {\n {\n ... on U {\n __typename\n id\n }\n } =>\n {\n ... on U {\n field(a: $contextualArgument_1_0)\n }\n }\n },\n },\n },\n}" } } }