---
source: apollo-router/src/plugins/response_cache/tests.rs
description: "Make sure everything is in status 'new' and we have all the entities and root fields"
expression: cache_keys
---
[
  {
    "key": "version:1.1:subgraph:products:type:Query:hash:b59f4823f96ad499bceb011d1bbe7b26214cfaadc8e0e553fd3f11f96b11e3a9:data:070af9367f9025bd796a1b7e0cd1335246f658aa4857c3a4d6284673b7d07fa6",
    "invalidationKeys": [
      "allProducts"
    ],
    "kind": {
      "rootFields": [
        "allProducts"
      ]
    },
    "subgraphName": "products",
    "subgraphRequest": {
      "query": "{ allProducts { name createdBy { __typename email country { a } } } }"
    },
    "source": "subgraph",
    "cacheControl": {
      "created": 0,
      "maxAge": 86400,
      "public": true
    },
    "shouldStore": true,
    "data": {
      "data": {
        "allProducts": [
          {
            "name": "Test",
            "createdBy": {
              "__typename": "User",
              "email": "test@test.com",
              "country": {
                "a": "France"
              }
            }
          }
        ]
      }
    },
    "warnings": []
  },
  {
    "key": "version:1.1:subgraph:users:type:User:representation:e2d4bfa6d172a744110f37cd5227ffb3d146259fe84d19a6c91d8da877373f3e:hash:ea28d2c7807fe753287c8c1f1e08f5fa62da4260ba4616dbd19e4d82936e0195:data:070af9367f9025bd796a1b7e0cd1335246f658aa4857c3a4d6284673b7d07fa6",
    "invalidationKeys": [
      "user-email:test@test.com-country-a:France"
    ],
    "kind": {
      "typename": "User",
      "entityKey": {
        "country": {
          "a": "France"
        },
        "email": "test@test.com"
      }
    },
    "subgraphName": "users",
    "subgraphRequest": {
      "query": "query($representations: [_Any!]!) { _entities(representations: $representations) { ... on User { name } } }",
      "variables": {
        "representations": [
          {
            "country": {
              "a": "France"
            },
            "email": "test@test.com",
            "__typename": "User"
          }
        ]
      }
    },
    "source": "subgraph",
    "cacheControl": {
      "created": 0,
      "maxAge": 86400,
      "public": true
    },
    "shouldStore": true,
    "data": {
      "data": {
        "name": "test"
      }
    },
    "warnings": []
  }
]
