Class: GraphQLHandler
handlers/graphql/src.GraphQLHandler
Implements
Table of contents
Constructors
Methods
- getCodeFirstSource
- getExecutorForHTTPSourceConfig
- getFallbackExecutor
- getMeshSource
- getNonExecutableSchemaForHTTPSource
- getRaceExecutor
Constructors
constructor
• new GraphQLHandler(__namedParameters
)
Parameters
Name | Type |
---|---|
__namedParameters | GetMeshSourceOptions <GraphQLHandlerHTTPConfiguration | GraphQLHandlerCodeFirstConfiguration | GraphQLHandlerMultipleHTTPConfiguration > |
Methods
getCodeFirstSource
▸ getCodeFirstSource(__namedParameters
): Promise
<MeshSource
>
Parameters
Name | Type |
---|---|
__namedParameters | GraphQLHandlerCodeFirstConfiguration |
Returns
Promise
<MeshSource
>
getExecutorForHTTPSourceConfig
▸ getExecutorForHTTPSourceConfig(httpSourceConfig
): Promise
<Executor
<Record
<string
, any
>, Record
<string
, any
>>>
Parameters
Name | Type |
---|---|
httpSourceConfig | GraphQLHandlerHTTPConfiguration |
Returns
Promise
<Executor
<Record
<string
, any
>, Record
<string
, any
>>>
getFallbackExecutor
▸ getFallbackExecutor(executors
): Executor
<Record
<string
, any
>, Record
<string
, any
>>
Parameters
Name | Type |
---|---|
executors | Executor <Record <string , any >, Record <string , any >>[] |
Returns
Executor
<Record
<string
, any
>, Record
<string
, any
>>
getMeshSource
▸ getMeshSource(): Promise
<MeshSource
>
Returns
Promise
<MeshSource
>
Implementation of
getNonExecutableSchemaForHTTPSource
▸ getNonExecutableSchemaForHTTPSource(httpSourceConfig
): Promise
<GraphQLSchema
>
Parameters
Name | Type |
---|---|
httpSourceConfig | GraphQLHandlerHTTPConfiguration |
Returns
Promise
<GraphQLSchema
>
getRaceExecutor
▸ getRaceExecutor(executors
): Executor
<Record
<string
, any
>, Record
<string
, any
>>
Parameters
Name | Type |
---|---|
executors | Executor <Record <string , any >, Record <string , any >>[] |
Returns
Executor
<Record
<string
, any
>, Record
<string
, any
>>