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

Check operationName before constructing regex in Operation.isSubscription, fixes #186 #210

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

yunyu
Copy link
Contributor

@yunyu yunyu commented Apr 3, 2019

On the next branch, manual mutations fail because of the newly added isSubscription getter throwing an exception if operationName is null (which seems to be the case for non-subscriptions). Adding a nullcheck fixes the issue (at least for me) when using GraphQLClient.mutate.

Fixes #186

@yunyu yunyu changed the title Check operationName before constructing regex in Operation.isSubscription, fixes #186 Check operationName before constructing regex in Operation.isSubscription, fixes https://github.com/zino-app/graphql-flutter/issues/186 Apr 3, 2019
@yunyu yunyu changed the title Check operationName before constructing regex in Operation.isSubscription, fixes https://github.com/zino-app/graphql-flutter/issues/186 Check operationName before constructing regex in Operation.isSubscription, fixes #186 Apr 3, 2019
@micimize
Copy link
Collaborator

micimize commented Apr 3, 2019

Great! Hopefully this is the main root cause.

Pushing these through, but @yunyu if you have the chance I'd recommend setting up commit signing

@micimize micimize merged commit 8d9f061 into zino-hofmann:next Apr 3, 2019
@HofmannZ
Copy link
Member

🎉 This PR is included in version 1.0.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@HofmannZ
Copy link
Member

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants