You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
Which implies that we need an AsyncIterator that yields objects of type JobStatus, that is to say:
{jobStatus: 'something'}
But when I use a custom written AsyncIterator to achieve this, I get errors saying jobStatus cannot be null. What I actually need to yield is the whole data payload:
Given a schema:
and types:
The generated subscription types looks like this:
Which implies that we need an
AsyncIterator
that yields objects of typeJobStatus
, that is to say:But when I use a custom written
AsyncIterator
to achieve this, I get errors sayingjobStatus
cannot be null. What I actually need to yield is the whole data payload:Is this a bug or am I doing something wrong?
EDIT:
I feel this is also apparent in graphql-yoga examples, we need to return the entire payload i.e:
https://github.com/prisma/graphql-yoga/tree/master/examples/subscriptions
instead of just
Versions
graphqlgen: 0.6.0-rc9
OS: Windows 10
The text was updated successfully, but these errors were encountered: