Interface: PrismaLoaderOptions
loaders/prisma/src.PrismaLoaderOptions
additional options for loading from a prisma.yml
file
Hierarchy
-
↳
PrismaLoaderOptions
Table of contents
Properties
- File
- FormData
- allowLegacySDLEmptyFields
- allowLegacySDLImplementsInterfaces
- assumeValid
- assumeValidSDL
- batch
- commentDescriptions
- connectionParams
- credentials
- customFetch
- cwd
- descriptions
- directiveIsRepeatable
- endpoint
- envVars
- experimentalFragmentVariables
- fetch
- graceful
- handleAsSDL
- headers
- ignore
- includeSources
- inputValueDeprecation
- method
- noLocation
- retry
- schemaDescription
- specifiedByUrl
- subscriptionsEndpoint
- subscriptionsProtocol
- timeout
- useGETForQueries
- webSocketImpl
Properties
File
• Optional
File: Object
Call signature
• new File(fileBits
, fileName
, options?
): File
WHATWG compatible File implementation
See
https://developer.mozilla.org/en-US/docs/Web/API/File (opens in a new tab)
Parameters
Name | Type |
---|---|
fileBits | BlobPart [] |
fileName | string |
options? | FilePropertyBag |
Returns
File
Type declaration
Name | Type |
---|---|
prototype | File |
Inherited from
Defined in
packages/executors/http/src/index.ts:71 (opens in a new tab)
FormData
• Optional
FormData: Object
Call signature
• new FormData(form?
, submitter?
): FormData
WHATWG compatible FormData implementation
See
https://developer.mozilla.org/en-US/docs/Web/API/FormData (opens in a new tab)
Parameters
Name | Type |
---|---|
form? | HTMLFormElement |
submitter? | null | HTMLElement |
Returns
FormData
Type declaration
Name | Type |
---|---|
prototype | FormData |
Inherited from
Defined in
packages/executors/http/src/index.ts:76 (opens in a new tab)
allowLegacySDLEmptyFields
• Optional
allowLegacySDLEmptyFields: boolean
Inherited from
LoadFromUrlOptions.allowLegacySDLEmptyFields
Defined in
packages/utils/src/Interfaces.ts:95 (opens in a new tab)
allowLegacySDLImplementsInterfaces
• Optional
allowLegacySDLImplementsInterfaces: boolean
Inherited from
LoadFromUrlOptions.allowLegacySDLImplementsInterfaces
Defined in
packages/utils/src/Interfaces.ts:96 (opens in a new tab)
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
LoadFromUrlOptions.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
LoadFromUrlOptions.assumeValidSDL
Defined in
node_modules/graphql/utilities/buildASTSchema.d.ts:12
batch
• Optional
batch: boolean
Enable Batching
Inherited from
Defined in
packages/loaders/url/src/index.ts:98 (opens in a new tab)
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
LoadFromUrlOptions.commentDescriptions
Defined in
packages/utils/src/Interfaces.ts:103 (opens in a new tab)
connectionParams
• Optional
connectionParams: Record
<string
, unknown
> | () => Record
<string
, unknown
>
Connection Parameters for WebSockets connection
Inherited from
LoadFromUrlOptions.connectionParams
Defined in
packages/loaders/url/src/index.ts:94 (opens in a new tab)
credentials
• Optional
credentials: RequestCredentials
Request Credentials (default: 'same-origin')
See
https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials (opens in a new tab)
Inherited from
LoadFromUrlOptions.credentials
Defined in
packages/executors/http/src/index.ts:62 (opens in a new tab)
customFetch
• Optional
customFetch: string
| FetchFn
A custom fetch
implementation to use when querying the original schema.
Defaults to cross-fetch
Inherited from
LoadFromUrlOptions.customFetch
Defined in
packages/loaders/url/src/index.ts:69 (opens in a new tab)
cwd
• Optional
cwd: string
Overrides
Defined in
packages/loaders/prisma/src/index.ts:16 (opens in a new tab)
descriptions
• Optional
descriptions: boolean
Whether to include descriptions in the introspection result. Default: true
Inherited from
LoadFromUrlOptions.descriptions
Defined in
node_modules/graphql/utilities/getIntrospectionQuery.d.ts:8
directiveIsRepeatable
• Optional
directiveIsRepeatable: boolean
Whether to include isRepeatable
flag on directives.
Default: false
Inherited from
LoadFromUrlOptions.directiveIsRepeatable
Defined in
node_modules/graphql/utilities/getIntrospectionQuery.d.ts:18
endpoint
• Optional
endpoint: string
Regular HTTP endpoint; defaults to the pointer
Inherited from
Defined in
packages/loaders/url/src/index.ts:82 (opens in a new tab)
envVars
• Optional
envVars: Object
Index signature
▪ [key: string
]: string
Defined in
packages/loaders/prisma/src/index.ts:14 (opens in a new tab)
experimentalFragmentVariables
• Optional
experimentalFragmentVariables: boolean
Inherited from
LoadFromUrlOptions.experimentalFragmentVariables
Defined in
packages/utils/src/Interfaces.ts:97 (opens in a new tab)
fetch
• Optional
fetch: FetchFn
Inherited from
Defined in
packages/executors/http/src/index.ts:41 (opens in a new tab)
graceful
• Optional
graceful: boolean
Defined in
packages/loaders/prisma/src/index.ts:15 (opens in a new tab)
handleAsSDL
• Optional
handleAsSDL: boolean
Handle URL as schema SDL
Inherited from
LoadFromUrlOptions.handleAsSDL
Defined in
packages/loaders/url/src/index.ts:78 (opens in a new tab)
headers
• Optional
headers: HeadersConfig
| (executorRequest?
: ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>) => HeadersConfig
Additional headers to include when querying the original schema
Inherited from
Defined in
packages/executors/http/src/index.ts:49 (opens in a new tab)
ignore
• Optional
ignore: string
| string
[]
Inherited from
Defined in
packages/utils/src/loaders.ts:14 (opens in a new tab)
includeSources
• Optional
includeSources: boolean
Inherited from
LoadFromUrlOptions.includeSources
Defined in
packages/utils/src/loaders.ts:15 (opens in a new tab)
inputValueDeprecation
• Optional
inputValueDeprecation: boolean
Whether target GraphQL server support deprecation of input values. Default: false
Inherited from
LoadFromUrlOptions.inputValueDeprecation
Defined in
node_modules/graphql/utilities/getIntrospectionQuery.d.ts:28
method
• Optional
method: "GET"
| "POST"
HTTP method to use when querying the original schema.
Inherited from
Defined in
packages/executors/http/src/index.ts:53 (opens in a new tab)
noLocation
• Optional
noLocation: boolean
Inherited from
Defined in
packages/utils/src/Interfaces.ts:94 (opens in a new tab)
retry
• Optional
retry: number
Retry attempts
Inherited from
Defined in
packages/executors/http/src/index.ts:66 (opens in a new tab)
schemaDescription
• Optional
schemaDescription: boolean
Whether to include description
field on schema.
Default: false
Inherited from
LoadFromUrlOptions.schemaDescription
Defined in
node_modules/graphql/utilities/getIntrospectionQuery.d.ts:23
specifiedByUrl
• Optional
specifiedByUrl: boolean
Whether to include specifiedByURL
in the introspection result.
Default: false
Inherited from
LoadFromUrlOptions.specifiedByUrl
Defined in
node_modules/graphql/utilities/getIntrospectionQuery.d.ts:13
subscriptionsEndpoint
• Optional
subscriptionsEndpoint: string
Subscriptions endpoint; defaults to the endpoint given as HTTP endpoint
Inherited from
LoadFromUrlOptions.subscriptionsEndpoint
Defined in
packages/loaders/url/src/index.ts:86 (opens in a new tab)
subscriptionsProtocol
• Optional
subscriptionsProtocol: SubscriptionProtocol
Use specific protocol for subscriptions
Inherited from
LoadFromUrlOptions.subscriptionsProtocol
Defined in
packages/loaders/url/src/index.ts:90 (opens in a new tab)
timeout
• Optional
timeout: number
Timeout in milliseconds
Inherited from
Defined in
packages/executors/http/src/index.ts:57 (opens in a new tab)
useGETForQueries
• Optional
useGETForQueries: boolean
Whether to use the GET HTTP method for queries when querying the original schema
Inherited from
LoadFromUrlOptions.useGETForQueries
Defined in
packages/executors/http/src/index.ts:45 (opens in a new tab)
webSocketImpl
• Optional
webSocketImpl: string
| typeof WebSocket
Custom WebSocket implementation used by the loaded schema if subscriptions are enabled
Inherited from
LoadFromUrlOptions.webSocketImpl