The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

GraphQL Mesh

GraphQL Mesh

Query anything, run anywhere.

Contact Us

Interface: JSONSchemaLoaderOptions#

loaders/json-schema/src.JSONSchemaLoaderOptions

Hierarchy#

  • BaseLoaderOptions

    JSONSchemaLoaderOptions

Table of contents#

Properties#

Properties#

allowLegacySDLEmptyFields#

Optional allowLegacySDLEmptyFields: boolean

Inherited from#

BaseLoaderOptions.allowLegacySDLEmptyFields

Defined in#

node_modules/@graphql-tools/utils/Interfaces.d.ts:18


allowLegacySDLImplementsInterfaces#

Optional allowLegacySDLImplementsInterfaces: boolean

Inherited from#

BaseLoaderOptions.allowLegacySDLImplementsInterfaces

Defined in#

node_modules/@graphql-tools/utils/Interfaces.d.ts:19


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

Inherited from#

BaseLoaderOptions.assumeValid

Defined in#

node_modules/graphql/type/schema.d.ts:146


assumeValidSDL#

Optional assumeValidSDL: boolean

Set to true to assume the SDL is valid.

Default: false

Inherited from#

BaseLoaderOptions.assumeValidSDL

Defined in#

node_modules/graphql/utilities/buildASTSchema.d.ts:12


baseUrl#

Optional baseUrl: string

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:13


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)

Inherited from#

BaseLoaderOptions.commentDescriptions

Defined in#

node_modules/@graphql-tools/utils/Interfaces.d.ts:26


cwd#

Optional cwd: string

Inherited from#

BaseLoaderOptions.cwd

Defined in#

node_modules/@graphql-tools/utils/loaders.d.ts:10


errorMessage#

Optional errorMessage: string

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:17


experimentalFragmentVariables#

Optional experimentalFragmentVariables: boolean

Inherited from#

BaseLoaderOptions.experimentalFragmentVariables

Defined in#

node_modules/@graphql-tools/utils/Interfaces.d.ts:20


fetch#

Optional fetch: (input: RequestInfo, init?: RequestInit) => Promise<Response>

Type declaration#

▸ (input, init?): Promise<Response>

Parameters#
NameType
inputRequestInfo
init?RequestInit
Returns#

Promise<Response>

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:20


generateInterfaceFromSharedFields#

Optional generateInterfaceFromSharedFields: boolean

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:21


ignore#

Optional ignore: string | string[]

Inherited from#

BaseLoaderOptions.ignore

Defined in#

node_modules/@graphql-tools/utils/loaders.d.ts:11


logger#

Optional logger: Logger

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:18


noLocation#

Optional noLocation: boolean

Inherited from#

BaseLoaderOptions.noLocation

Defined in#

node_modules/@graphql-tools/utils/Interfaces.d.ts:17


operationHeaders#

Optional operationHeaders: Record<string, string>

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:14


operations#

operations: JSONSchemaOperationConfig[]

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:16


pubsub#

Optional pubsub: MeshPubSub

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:19


schemaHeaders#

Optional schemaHeaders: Record<string, string>

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:15