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.
On a side note: Where is the documentation on all the different options when implementing subscriptions resolvers? Why does the resolver method even do and why is it required? Where is this implemented?
Actual results
What was described.
Versions
graphqlgen: 0.4.0
OS name and version: macOS 10.14
The text was updated successfully, but these errors were encountered:
Description
I have a schema with
graphqlgen generates
Note that parent is typed as
undefined
for theresolve
method. This is problematic because writingcompiles fine but every output event is just emitted as null:
Using
instead works as expected but requires typing
parent
asany
since the generated type isundefined
.Steps to reproduce
Provided above.
Expected results
Honestly I'm not even sure what the type should be. I can't really find documentation for it anywhere. The example code here: https://github.com/prisma/prisma-examples/blob/master/typescript-graphql-subscriptions/src/resolvers/Subscription.ts doesn't provide any types on the
resolve
method.On a side note: Where is the documentation on all the different options when implementing subscriptions resolvers? Why does the
resolver
method even do and why is it required? Where is this implemented?Actual results
What was described.
Versions
The text was updated successfully, but these errors were encountered: