---
source: apollo-router/src/plugins/response_cache/tests.rs
expression: cache_keys
---
[
  {
    "key": "version:1.1:subgraph:user:type:Query:hash:715bf334e8cef01c70a374150a1f409cf5c4f57acd00664485ff8b8d6dd39e2c:data:070af9367f9025bd796a1b7e0cd1335246f658aa4857c3a4d6284673b7d07fa6",
    "invalidationKeys": [
      "currentUser"
    ],
    "kind": {
      "rootFields": [
        "currentUser"
      ]
    },
    "subgraphName": "user",
    "subgraphRequest": {
      "query": "{ currentUser { allOrganizations { __typename id } } }"
    },
    "source": "subgraph",
    "cacheControl": {
      "created": 0,
      "maxAge": 86400,
      "noStore": true
    },
    "shouldStore": false,
    "data": {
      "data": {
        "currentUser": {
          "allOrganizations": [
            {
              "__typename": "Organization",
              "id": "1"
            },
            {
              "__typename": "Organization",
              "id": "3"
            }
          ]
        }
      }
    },
    "warnings": [
      {
        "code": "CACHE_CONTROL_NO_STORE",
        "links": [
          {
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control",
            "title": "Cache-Control header documentation"
          }
        ],
        "message": "The subgraph returned a Cache-Control header containing no-store, so the data was not cached"
      }
    ]
  },
  {
    "key": "version:1.1:subgraph:orga:type:Organization:representation:f6e8c0c4f36d6c0d11330be52b76316559e0390ff75fd002ed3fa73f9b6470f7:hash:b477abf3b559d50444a6790a53a232701071574572433de2f9424d902a402de6:data:070af9367f9025bd796a1b7e0cd1335246f658aa4857c3a4d6284673b7d07fa6",
    "invalidationKeys": [
      "organization",
      "organization-1"
    ],
    "kind": {
      "typename": "Organization",
      "entityKey": {
        "id": "1"
      }
    },
    "subgraphName": "test",
    "subgraphRequest": {
      "query": "query($representations: [_Any!]!) { _entities(representations: $representations) { ... on Organization { name } } }",
      "variables": {
        "representations": [
          {
            "id": "1",
            "__typename": "Organization"
          },
          {
            "id": "3",
            "__typename": "Organization"
          }
        ]
      }
    },
    "source": "subgraph",
    "cacheControl": {
      "created": 0,
      "maxAge": 3600,
      "public": true
    },
    "shouldStore": true,
    "data": {
      "data": {
        "name": "Organization 1"
      }
    },
    "warnings": []
  },
  {
    "key": "version:1.1:subgraph:orga:type:Organization:representation:07ea57c08f759cd09342c5a65d5d726fb5930a9796b1ec27a82189e5694dcc2b:hash:b477abf3b559d50444a6790a53a232701071574572433de2f9424d902a402de6:data:070af9367f9025bd796a1b7e0cd1335246f658aa4857c3a4d6284673b7d07fa6",
    "invalidationKeys": [
      "organization",
      "organization-3"
    ],
    "kind": {
      "typename": "Organization",
      "entityKey": {
        "id": "3"
      }
    },
    "subgraphName": "test",
    "subgraphRequest": {
      "query": "query($representations: [_Any!]!) { _entities(representations: $representations) { ... on Organization { name } } }",
      "variables": {
        "representations": [
          {
            "id": "1",
            "__typename": "Organization"
          },
          {
            "id": "3",
            "__typename": "Organization"
          }
        ]
      }
    },
    "source": "subgraph",
    "cacheControl": {
      "created": 0,
      "maxAge": 3600,
      "public": true
    },
    "shouldStore": true,
    "data": {
      "data": {
        "name": "Organization 3"
      }
    },
    "warnings": []
  }
]
