SubscriptionProviderRequestHandlerAdapter
Adapter to convert a SubscriptionProvider to a GraphQLRequestHandler. For historical context, the SubscriptionProvider was used to handle subscriptions in Altair, but this was later replaced with the GraphQLRequestHandler which is more generic and works for all types of GraphQL requests.
Implements
Constructors
new SubscriptionProviderRequestHandlerAdapter()
new SubscriptionProviderRequestHandlerAdapter(
providerClass
:SubscriptionProviderConstructor
):SubscriptionProviderRequestHandlerAdapter
Parameters
• providerClass: SubscriptionProviderConstructor
Returns
SubscriptionProviderRequestHandlerAdapter
Properties
provider?
optional
provider:SubscriptionProvider
Methods
generateCurl()
generateCurl(
request
:GraphQLRequestOptions
):string
Parameters
• request: GraphQLRequestOptions
Returns
string
Implementation of
GraphQLRequestHandler
.generateCurl
handle()
handle(
request
:GraphQLRequestOptions
):Observable
<GraphQLResponseData
>
Parameters
• request: GraphQLRequestOptions
Returns
Observable
<GraphQLResponseData
>