MCPcopy
hub / github.com/apollographql/apollo-client / PresetConfig

Interface PresetConfig

packages/apollo-boost/src/index.ts:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27};
28
29export interface PresetConfig {
30 request?: (operation: Operation) => Promise<void> | void;
31 uri?: string | UriFunction;
32 credentials?: string;
33 headers?: any;
34 fetch?: WindowOrWorkerGlobalScope['fetch'];
35 fetchOptions?: HttpLink.Options;
36 clientState?: ClientStateConfig;
37 onError?: ErrorLink.ErrorHandler;
38 cacheRedirects?: CacheResolverMap;
39 cache?: ApolloCache<any>;
40 name?: string;
41 version?: string;
42 resolvers?: Resolvers | Resolvers[];
43 typeDefs?: string | string[] | DocumentNode | DocumentNode[];
44 fragmentMatcher?: LocalStateFragmentMatcher;
45 assumeImmutableResults?: boolean;
46}
47
48// Yes, these are the exact same as the `PresetConfig` interface. We're
49// defining these again so they can be used to verify that valid config

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…