---
source: apollo-router/tests/set_context.rs
assertion_line: 280
expression: response
---
{
  "data": null,
  "errors": [
    {
      "message": "Some error",
      "path": [
        "t",
        "u"
      ],
      "extensions": {
        "service": "Subgraph2"
      }
    },
    {
      "message": "Null value found for non-nullable type U",
      "path": [
        "t",
        "u"
      ],
      "extensions": {
        "code": "RESPONSE_VALIDATION_FAILED"
      }
    },
    {
      "message": "Null value found for non-nullable type T",
      "path": [
        "t"
      ],
      "extensions": {
        "code": "RESPONSE_VALIDATION_FAILED"
      }
    }
  ],
  "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_fetch_failure__Subgraph1__0 { t { __typename prop id u { __typename id } } }",
              "operationKind": "query",
              "operationName": "Query_fetch_failure__Subgraph1__0",
              "outputRewrites": null,
              "schemaAwareHash": "5580d1aad73ae6a685200b5ed6c3bb917f6d6e8da215e0ad9f7f491fc3b776e7",
              "serviceName": "Subgraph1",
              "variableUsages": []
            },
            {
              "kind": "Parallel",
              "nodes": [
                {
                  "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_fetch_failure__Subgraph1__1($representations: [_Any!]!, $contextualArgument_1_0: String) { _entities(representations: $representations) { ... on U { field(a: $contextualArgument_1_0) } } }",
                    "operationKind": "query",
                    "operationName": "Query_fetch_failure__Subgraph1__1",
                    "outputRewrites": null,
                    "requires": [
                      {
                        "kind": "InlineFragment",
                        "selections": [
                          {
                            "kind": "Field",
                            "name": "__typename"
                          },
                          {
                            "kind": "Field",
                            "name": "id"
                          }
                        ],
                        "typeCondition": "U"
                      }
                    ],
                    "schemaAwareHash": "d33d8040456aa4c2c67fba60c0621d8bc656baf994541c453c479492a0627f3c",
                    "serviceName": "Subgraph1",
                    "variableUsages": [
                      "contextualArgument_1_0"
                    ]
                  },
                  "path": [
                    "t",
                    "u"
                  ]
                },
                {
                  "kind": "Flatten",
                  "node": {
                    "authorization": {
                      "is_authenticated": false,
                      "policies": [],
                      "scopes": []
                    },
                    "contextRewrites": null,
                    "id": null,
                    "inputRewrites": null,
                    "kind": "Fetch",
                    "operation": "query Query_fetch_failure__Subgraph2__2($representations: [_Any!]!) { _entities(representations: $representations) { ... on U { b } } }",
                    "operationKind": "query",
                    "operationName": "Query_fetch_failure__Subgraph2__2",
                    "outputRewrites": null,
                    "requires": [
                      {
                        "kind": "InlineFragment",
                        "selections": [
                          {
                            "kind": "Field",
                            "name": "__typename"
                          },
                          {
                            "kind": "Field",
                            "name": "id"
                          }
                        ],
                        "typeCondition": "U"
                      }
                    ],
                    "schemaAwareHash": "496c2e23024bad910adfe1c7327571e9e87685ea51f61c4f37ea05a489a26a22",
                    "serviceName": "Subgraph2",
                    "variableUsages": []
                  },
                  "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    Parallel {\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      Flatten(path: \"t.u\") {\n        Fetch(service: \"Subgraph2\") {\n          {\n            ... on U {\n              __typename\n              id\n            }\n          } =>\n          {\n            ... on U {\n              b\n            }\n          }\n        },\n      },\n    },\n  },\n}"
    },
    "valueCompletion": [
      {
        "message": "Null value found for non-nullable type Int",
        "path": [
          "t",
          "u"
        ]
      },
      {
        "message": "Null value found for non-nullable type U",
        "path": [
          "t",
          "u"
        ]
      },
      {
        "message": "Null value found for non-nullable type T",
        "path": [
          "t"
        ]
      }
    ]
  }
}
