@accounts/graphql-client
Version:
GraphQL client transport for accounts
12 lines (11 loc) • 546 B
TypeScript
import { type DocumentNode } from 'graphql';
/**
* Utility function used to modify the current query Document.
* We remove the existing the user fragment and add the one provided by the user.
* Graphql-codegen add the fragment as the end of the definition array.
*/
export declare const replaceUserFieldsFragment: (document: DocumentNode, userFieldsFragment: DocumentNode) => {
definitions: import("graphql").DefinitionNode[];
kind: import("graphql/language/kinds").Kind.DOCUMENT;
loc?: import("graphql").Location | undefined;
};