graphql-add-id-document-transform
Version:
GraphQL document transform ensuring cache normalization by adding an `id` field if available
8 lines (5 loc) • 314 B
TypeScript
import { Types } from '@graphql-codegen/plugin-helpers';
declare const addIdDocumentTransform: {
transform: ({ schema: astSchema, documents, }: Pick<Parameters<Types.DocumentTransformFunction>[0], "schema" | "documents">) => ReturnType<Types.DocumentTransformFunction>;
};
export { addIdDocumentTransform };