loaders_graphql_file_src.graphqlfileloaderoptions

Interface: GraphQLFileLoaderOptions#

loaders/graphql-file/src.GraphQLFileLoaderOptions

Additional options for loading from a GraphQL file

Hierarchy#

Table of contents#

Properties#

Properties#

allowLegacySDLEmptyFields#

Optional allowLegacySDLEmptyFields: boolean

Defined in: packages/utils/src/Interfaces.ts:78


allowLegacySDLImplementsInterfaces#

Optional allowLegacySDLImplementsInterfaces: boolean

Defined in: packages/utils/src/Interfaces.ts:79


assumeValid#

Optional assumeValid: boolean

When building a schema from a GraphQL service's introspection result, it might be safe to assume the schema is valid. Set to true to assume the produced schema is valid.

Default: false

Defined in: node_modules/graphql/type/schema.d.ts:122


assumeValidSDL#

Optional assumeValidSDL: boolean

Set to true to assume the SDL is valid.

Default: false

Defined in: node_modules/graphql/utilities/buildASTSchema.d.ts:22


commentDescriptions#

Optional commentDescriptions: boolean

Set to true in order to convert all GraphQL comments (marked with # sign) to descriptions (""") GraphQL has built-in support for transforming descriptions to comments (with print), but not while parsing. Turning the flag on will support the other way as well (parse)

Defined in: packages/utils/src/Interfaces.ts:86


cwd#

Optional cwd: string

Defined in: packages/utils/src/loaders.ts:15


experimentalFragmentVariables#

Optional experimentalFragmentVariables: boolean

Defined in: packages/utils/src/Interfaces.ts:80


noLocation#

Optional noLocation: boolean

Defined in: packages/utils/src/Interfaces.ts:77


skipGraphQLImport#

Optional skipGraphQLImport: boolean

Set to true to disable handling #import syntax

Defined in: packages/loaders/graphql-file/src/index.ts:26