types_src.yamlconfig.openapihandler
#
Interface: OpenapiHandlertypes/src.YamlConfig.OpenapiHandler
Handler for Swagger / OpenAPI 2/3 specification. Source could be a local json/swagger file, or a url to it.
#
Table of contents#
Properties- addLimitArgument
- baseUrl
- customFetch
- genericPayloadArgName
- includeHttpDetails
- operationHeaders
- qs
- schemaHeaders
- selectQueryOrMutationField
- source
- sourceFormat
#
Properties#
addLimitArgument• Optional
addLimitArgument: boolean
Auto-generate a 'limit' argument for all fields that return lists of objects, including ones produced by links
Defined in: packages/types/src/config.ts:681
#
baseUrl• Optional
baseUrl: string
Specifies the URL on which all paths will be based on. Overrides the server object in the OAS.
Defined in: packages/types/src/config.ts:663
#
customFetch• Optional
customFetch: any
W3 Compatible Fetch Implementation
Defined in: packages/types/src/config.ts:673
#
genericPayloadArgName• Optional
genericPayloadArgName: boolean
Set argument name for mutation payload to 'requestBody'. If false, name defaults to camelCased pathname
Defined in: packages/types/src/config.ts:685
#
includeHttpDetails• Optional
includeHttpDetails: boolean
Include HTTP Response details to the result object
Defined in: packages/types/src/config.ts:677
#
operationHeaders• Optional
operationHeaders: object
JSON object representing the Headers to add to the runtime of the API calls
#
Type declaration:Defined in: packages/types/src/config.ts:650
#
qs• Optional
qs: object
JSON object representing the query search parameters to add to the API calls
#
Type declaration:Defined in: packages/types/src/config.ts:667
#
schemaHeaders• Optional
schemaHeaders: object
If you are using a remote URL endpoint to fetch your schema, you can set headers for the HTTP request to fetch your schema.
#
Type declaration:Defined in: packages/types/src/config.ts:656
#
selectQueryOrMutationField• Optional
selectQueryOrMutationField: SelectQueryOrMutationFieldConfig[]
Allows to explicitly override the default operation (Query or Mutation) for any OAS operation
Defined in: packages/types/src/config.ts:689
#
source• source: any
A pointer to your API source - could be a local file, remote file or url endpoint
Defined in: packages/types/src/config.ts:642
#
sourceFormat• Optional
sourceFormat: json | yaml
Format of the source file (Allowed values: json, yaml)
Defined in: packages/types/src/config.ts:646