merge_src.config

Interface: Config#

merge/src.Config

Hierarchy#

Table of contents#

Properties#

Properties#

commentDescriptions#

Optional commentDescriptions: boolean

Descriptions are defined as preceding string literals, however an older experimental version of the SDL supported preceding comments as descriptions. Set to true to enable this deprecated behavior. This option is provided to ease adoption and will be removed in v16.

Default: false

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:38


consistentEnumMerge#

Optional consistentEnumMerge: boolean

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:60


convertExtensions#

Optional convertExtensions: boolean

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:59


exclusions#

Optional exclusions: string[]

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:57


forceSchemaDefinition#

Optional forceSchemaDefinition: boolean

Creates schema definition, even when no types are available Produces: schema { query: Query }

Default: false

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:23


reverseDirectives#

Optional reverseDirectives: boolean

Puts the next directive first.

Default: false

example: Given:

type User { a: String @foo }
type User { a: String @bar }

Results:

type User { a: @bar @foo }

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:56


sort#

Optional sort: boolean | CompareFn<string\>

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:58


throwOnConflict#

Optional throwOnConflict: boolean

Throws an error on a merge conflict

Default: false

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:29


useSchemaDefinition#

Optional useSchemaDefinition: boolean

Produces schema { query: ..., mutation: ..., subscription: ... }

Default: true

Defined in: packages/merge/src/typedefs-mergers/merge-typedefs.ts:16