UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

1 lines 3.14 kB
{"version":3,"file":"constants.cjs","sources":["../../../../src/utilities/internal/constants.ts"],"sourcesContent":["/**\n * @internal\n * Used to set `extensions` on the GraphQL result without exposing it\n * unnecessarily. Only use internally!\n */\nexport const extensionsSymbol = Symbol.for(\"apollo.result.extensions\");\n\n/**\n * For use in Cache implementations only.\n * This should not be used in userland code.\n */\nexport const streamInfoSymbol = Symbol.for(\"apollo.result.streamInfo\");\n\n/**\n * @internal\n * Used as key for `ApolloClient.WatchQueryOptions`.\n *\n * Meant for framework integrators only!\n */\nexport const variablesUnknownSymbol = Symbol.for(\n \"apollo.observableQuery.variablesUnknown\"\n);\n\n/**\n * @internal\n * Used to tell `ApolloCache.diff` whether to handle incremental results. This\n * changes the behavior of `returnPartialData: false` when handling incremental\n * queries with partial or empty data at a `@defer` or `@stream` boundary. This\n * also signals to the cache that it should return a data state.\n *\n * When `handleIncrementalSymbol` is not provided, the cache should behave as it\n * does today.\n *\n * 3rd party caches that want to implement this behavior should talk to the\n * Apollo Client team. Open a GitHub issue so we can chat with you on what is\n * required for this to work in Apollo Client version 4.x.\n *\n * Meant for cache implementers only. This should not be used in userland code.\n */\nexport const handleIncrementalSymbol = Symbol.for(\n \"apollo.cache.handleIncremental\"\n);\n"],"names":[],"mappings":";;;;;;;;;;AAKa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAgC,CAAhC,CAAA,CAAA,CAAA,CAAA,CAAsC,CAAC,CAAvC,CAAA,CAA0C,CAAC,CAA3C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqE,CAAC;A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