UNPKG

@graphql-codegen/c-sharp-operations

Version:

GraphQL Code Generator plugin for generating ready-to-use Angular Components based on GraphQL operations

67 lines (66 loc) 1.64 kB
import { RawClientSideBasePluginConfig } from '@graphql-codegen/visitor-plugin-common'; export interface CSharpOperationsRawPluginConfig extends RawClientSideBasePluginConfig { /** * @name namedClient * @type string * @description Defined the global value of `namedClient`. * * @example graphql.macro * ```yml * config: * namedClient: 'customName' * ``` */ namedClient?: string; /** * @name serviceName * @type string * @description Defined the global value of `serviceName`. * * @example graphql.macro * ```yml * config: * serviceName: 'MySDK' * ``` */ serviceName?: string; /** * @name querySuffix * @type string * @description Allows to define a custom suffix for query operations. * @default 'GQL' * * @example graphql.macro * ```yml * config: * querySuffix: 'QueryService' * ``` */ querySuffix?: string; /** * @name mutationSuffix * @type string * @description Allows to define a custom suffix for mutation operations. * @default 'GQL' * * @example graphql.macro * ```yml * config: * mutationSuffix: 'MutationService' * ``` */ mutationSuffix?: string; /** * @name subscriptionSuffix * @type string * @description Allows to define a custom suffix for Subscription operations. * @default 'GQL' * * @example graphql.macro * ```yml * config: * subscriptionSuffix: 'SubscriptionService' * ``` */ subscriptionSuffix?: string; }