Interface: JSONSchemaLoaderOptions
loaders/json-schema/src.JSONSchemaLoaderOptions
Hierarchy
-
BaseLoaderOptions
↳
JSONSchemaLoaderOptions
Table of contents
Properties
- allowLegacySDLEmptyFields
- allowLegacySDLImplementsInterfaces
- assumeValid
- assumeValidSDL
- baseUrl
- commentDescriptions
- cwd
- errorMessage
- experimentalFragmentVariables
- fetch
- ignore
- ignoreErrorResponses
- logger
- noDeduplication
- noLocation
- operationHeaders
- operations
- pubsub
- queryParams
- queryStringOptions
- schemaHeaders
Properties
allowLegacySDLEmptyFields
• Optional
allowLegacySDLEmptyFields: boolean
Inherited from
BaseLoaderOptions.allowLegacySDLEmptyFields
Defined in
node_modules/@graphql-tools/utils/typings/Interfaces.d.ts:18
allowLegacySDLImplementsInterfaces
• Optional
allowLegacySDLImplementsInterfaces: boolean
Inherited from
BaseLoaderOptions.allowLegacySDLImplementsInterfaces
Defined in
node_modules/@graphql-tools/utils/typings/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/types.ts:10
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/typings/Interfaces.d.ts:26
cwd
• Optional
cwd: string
Inherited from
BaseLoaderOptions.cwd
Defined in
node_modules/@graphql-tools/utils/typings/loaders.d.ts:10
errorMessage
• Optional
errorMessage: string
Defined in
packages/loaders/json-schema/src/types.ts:14
experimentalFragmentVariables
• Optional
experimentalFragmentVariables: boolean
Inherited from
BaseLoaderOptions.experimentalFragmentVariables
Defined in
node_modules/@graphql-tools/utils/typings/Interfaces.d.ts:20
fetch
• Optional
fetch: (input
: URL
| RequestInfo
, init?
: RequestInit
) => Promise
<Response
>
Type declaration
▸ (input
, init?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
input | URL | RequestInfo |
init? | RequestInit |
Returns
Promise
<Response
>
Defined in
packages/loaders/json-schema/src/types.ts:17
ignore
• Optional
ignore: string
| string
[]
Inherited from
BaseLoaderOptions.ignore
Defined in
node_modules/@graphql-tools/utils/typings/loaders.d.ts:11
ignoreErrorResponses
• Optional
ignoreErrorResponses: boolean
Defined in
packages/loaders/json-schema/src/types.ts:18
logger
• Optional
logger: Logger
Defined in
packages/loaders/json-schema/src/types.ts:15
noDeduplication
• Optional
noDeduplication: boolean
Defined in
packages/loaders/json-schema/src/types.ts:20
noLocation
• Optional
noLocation: boolean
Inherited from
BaseLoaderOptions.noLocation
Defined in
node_modules/@graphql-tools/utils/typings/Interfaces.d.ts:17
operationHeaders
• Optional
operationHeaders: OperationHeadersConfiguration
Defined in
packages/loaders/json-schema/src/types.ts:11
operations
• operations: JSONSchemaOperationConfig
[]
Defined in
packages/loaders/json-schema/src/types.ts:13
pubsub
• Optional
pubsub: MeshPubSub
Defined in
packages/loaders/json-schema/src/types.ts:16
queryParams
• Optional
queryParams: Record
<string
, string
>
Defined in
packages/loaders/json-schema/src/types.ts:19
queryStringOptions
• Optional
queryStringOptions: IStringifyOptions
Defined in
packages/loaders/json-schema/src/types.ts:21
schemaHeaders
• Optional
schemaHeaders: Record
<string
, string
>
Defined in
packages/loaders/json-schema/src/types.ts:12