The _start was consuming the first reply from the server for both query and subscribe functions.
As per the GraphQL subscription spec, the GQL_START message gets a GQL_DATA message as a reply for both subscriptions and queries/mutations through websocket.
This change updates the _start and query method, where the _start no longer waits for the response and returns the _id and the first receive would be GQL_DATA for the query method.
The
_start
was consuming the first reply from the server for both query and subscribe functions.As per the GraphQL subscription spec, the
GQL_START
message gets aGQL_DATA
message as a reply for both subscriptions and queries/mutations through websocket.This change updates the
_start
andquery
method, where the_start
no longer waits for the response and returns the_id
and the first receive would beGQL_DATA
for thequery
method.