@graphql-codegen/hasura-allow-list
Version:
GraphQL Code Generator plugin to generate hasura allow liste metadata from graphql files
25 lines (24 loc) • 956 B
text/typescript
export interface HasuraAllowListPluginConfig {
/**
* @default allowed-queries
* @description Choose the collection name to be generated. Defaults to allowed-queries
*/
collectionName?: string;
/**
* @default 3
* @description Target metadata config version. Supported versions are 2 and 3.
* This is mostly for future proofing, currently has no impact as both versions use the same format.
* The default value _will change_ in the future if/when newer config versions are released.
*/
configVersion?: 2 | 3;
/**
* @default false
* @description Whether to source fragments per-document, or globally. If set, will enforce fragment name uniqueness
*/
globalFragments?: boolean;
/**
* @default definition
* @description Whether to order fragments by global definition order, or by definition order in the document
*/
fragmentsOrder?: 'global' | 'document';
}