Skip to content

fix(graphQL): Validate subscriptions in Operation function (#5926)#5983

Merged
parasssh merged 1 commit intorelease/v20.07from
pawanrawal/cherrypick-5926
Jul 14, 2020
Merged

fix(graphQL): Validate subscriptions in Operation function (#5926)#5983
parasssh merged 1 commit intorelease/v20.07from
pawanrawal/cherrypick-5926

Conversation

@pawanrawal
Copy link
Copy Markdown
Contributor

@pawanrawal pawanrawal commented Jul 14, 2020

We realised that as a result of b40c632, introspection queries started failing in Insomnia because subscription didn't exist in the types. Instead of adding more hacks there, we add validation for this inside Operation. We already do something similar for Queries/Mutations.

(cherry picked from commit e33850e)


This change is Reviewable

Docs Preview: Dgraph Preview

We realised that as a result of b40c632, introspection queries started failing in Insomnia because subscription didn't exist in the types. Instead of adding more hacks there, we add validation for this inside Operation. We already do something similar for Queries/Mutations.

(cherry picked from commit e33850e)
@pawanrawal pawanrawal changed the title Validate subscriptions in Operation function (#5926) fix(graphQL): Validate subscriptions in Operation function (#5926) Jul 14, 2020
@github-actions github-actions Bot added the area/graphql Issues related to GraphQL support on Dgraph. label Jul 14, 2020
@parasssh parasssh merged commit 838c677 into release/v20.07 Jul 14, 2020
@parasssh
Copy link
Copy Markdown
Contributor

Please add the JIRA ticket in the description.

@pawanrawal pawanrawal deleted the pawanrawal/cherrypick-5926 branch July 31, 2020 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/graphql Issues related to GraphQL support on Dgraph.

Development

Successfully merging this pull request may close these issues.

2 participants