UNPKG

@stewartmcgown/apollo-response-cache

Version:

Caching and invalidation mechanisms (plugins, directives) of Apollo GraphQL

22 lines (21 loc) 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CACHE_KEY_PREFIX_NODE_FQC = exports.CACHE_KEY_PREFIX_FQC = void 0; /* * Full query response cache * * | key | value | * | fqc:47ea290 | {"data":{"viewer":{"id": ...} | * | fqc:7191828 | {"data":{"viewer":{"id": ...} | * * @see {@url https://github.com/apollographql/apollo-server/pull/2437/files} */ exports.CACHE_KEY_PREFIX_FQC = 'fqc:'; /** * Node and FQC hashes array mapping * * | key | value | * | node-fqcs:Article:18 | ["47ea290", "7191828"] | * */ exports.CACHE_KEY_PREFIX_NODE_FQC = 'node-fqcs';