UNPKG

@graphql-codegen/client-preset

Version:
7 lines (6 loc) 509 B
import { Types } from '@graphql-codegen/plugin-helpers'; /** * Automatically adds `__typename` selections to every object type in your GraphQL document except the root node in subscriptions since a single root field is expected (https://spec.graphql.org/draft/#sec-Single-root-field). * This is useful for GraphQL Clients such as Apollo Client or urql that need typename information for their cache to function. */ export declare const addTypenameSelectionDocumentTransform: Types.DocumentTransformObject;