@apollo/client
Version:
A fully-featured caching GraphQL client.
46 lines (45 loc) • 1.94 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleIncrementalSymbol = exports.variablesUnknownSymbol = exports.streamInfoSymbol = exports.extensionsSymbol = void 0;
/**
* @internal
* Used to set `extensions` on the GraphQL result without exposing it
* unnecessarily. Only use internally!
*
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
*/
exports.extensionsSymbol = Symbol.for("apollo.result.extensions");
/**
* For use in Cache implementations only.
* This should not be used in userland code.
*/
exports.streamInfoSymbol = Symbol.for("apollo.result.streamInfo");
/**
* @internal
* Used as key for `ApolloClient.WatchQueryOptions`.
*
* Meant for framework integrators only!
*
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
*/
exports.variablesUnknownSymbol = Symbol.for("apollo.observableQuery.variablesUnknown");
/**
* @internal
* Used to tell `ApolloCache.diff` whether to handle incremental results. This
* changes the behavior of `returnPartialData: false` when handling incremental
* queries with partial or empty data at a `@defer` or `@stream` boundary. This
* also signals to the cache that it should return a data state.
*
* When `handleIncrementalSymbol` is not provided, the cache should behave as it
* does today.
*
* 3rd party caches that want to implement this behavior should talk to the
* Apollo Client team. Open a GitHub issue so we can chat with you on what is
* required for this to work in Apollo Client version 4.x.
*
* Meant for cache implementers only. This should not be used in userland code.
*
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
*/
exports.handleIncrementalSymbol = Symbol.for("apollo.cache.handleIncremental");
//# sourceMappingURL=constants.cjs.map