v0.9.0
Highlight
Support graphql-ws
protocol
The subscription client now supports 2 protocols:
The protocol can be switchable by the WithProtocol
function. By default, the subscription client uses the subscriptions-transport-ws
protocol.
client := graphql.NewSubscriptionClient("wss://example.com/graphql").
WithProtocol(graphql.GraphQLWS)
Changelog
- exposed the
UnmarshalGraphQL
function in thejsonutil
package (#62) @nico151999 - fix the dynamic GraphQL type output from the GraphQLType interface instance (#56) @hgiasac
- support
graphql-ws
protocol (#67) @hgiasac - allow using custom HTTP client that implements
Doer
interface (#68) @senekis - patch gin v1.7.7 to fix the security issue (#75) @hgiasac