Skip to content

fix: add missing subcribe when rebuildOutput, solve subcription megreSchema problem#1141

Open
GavinXue wants to merge 1 commit intographql-nexus:mainfrom
GavinXue:fix-subcribe-merge
Open

fix: add missing subcribe when rebuildOutput, solve subcription megreSchema problem#1141
GavinXue wants to merge 1 commit intographql-nexus:mainfrom
GavinXue:fix-subcribe-merge

Conversation

@GavinXue
Copy link

There is a "Subscription field must return Async Iterable. Received: undefined" problem when merge Subcription type. It can reproduce here: https://stackblitz.com/edit/graphql-xtfnno?file=index.mjs

I found that the mergeSchema's step rebuildOutputDefinition doesn't return subscribe, so it the subscribe will replaced by undefined. this commit add subscribe to return.

Hope it helpful.

@JWambaugh
Copy link

Can we get this merged? I've been slamming my head against this bug all day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants