@incubrain/client
Version:
A type-safe GraphQL client for Hasura, optimized for Node.js and Nuxt environments with full TypeScript support.
34 lines (33 loc) • 940 B
TypeScript
export interface TypeScriptClientPluginConfig {
baseClass?: string;
clientClassPrefix?: string;
clientClassSuffix?: string;
addTypenameToSelectionSets?: boolean;
dedupeFragments?: boolean;
exportFragments?: boolean;
pureMagicComment?: boolean;
skipDocumentsValidation?: boolean;
defaultSelection?: {
[entity: string]: {
fields?: string[];
relations?: {
[relation: string]: {
fields?: string[];
defaultInclude?: boolean;
};
};
};
};
omitTypename?: boolean;
includeAggregates?: boolean;
includeMutations?: boolean;
typePrefix?: string;
typeSuffix?: string;
namingConvention?: {
typeNames?: string;
enumValues?: string;
transformUnderscore?: boolean;
};
generateDocumentHelper?: boolean;
generateTypesOnly?: boolean;
}