Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify 'subscription' as valid $operation value #733

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

Kingdutch
Copy link
Contributor

Parser::parseOperationDefinition will create a OperationDefinitionNode
and propagate the operation type it finds. In ::parseExecutableDefinition
the function is called with query, mutation, or subscription. This means
OperationDefinitionNode can exist where $operation is subscription.

The property type annotation doesn't currently match with this possible
behaviour so we should update it :)

`Parser::parseOperationDefinition` will create a `OperationDefinitionNode`
and propagate the `operation` type it finds. In `::parseExecutableDefinition`
the function is called with `query`, `mutation`, or `subscription`. This means
`OperationDefinitionNode` can exist where `$operation` is `subscription`.

The property type annotation doesn't currently match with this possible 
behaviour so we should update it :)
@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.185% when pulling 38f0b83 on Kingdutch:patch-1 into 8ee8eec on webonyx:master.

@vladar vladar merged commit 5745bf6 into webonyx:master Nov 26, 2020
@Kingdutch Kingdutch deleted the patch-1 branch November 26, 2020 18:11
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.

4 participants