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

Allow mutation and subscription operations #41

Merged
merged 5 commits into from
Feb 4, 2020

Conversation

smkhalsa
Copy link
Member

Per #40, this PR maps the operation to the appropriate type.

@smkhalsa smkhalsa requested a review from klavs January 29, 2020 18:23
@smkhalsa
Copy link
Member Author

smkhalsa commented Feb 4, 2020

@klavs can we merge this?

OperationDefinitionNode op, [
Map<OperationType, String> rootTypes = defaultRootTypes,
]) =>
schema.definitions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are looking for a ObjectTypeDefinitionNode by name and then returning the name.

So, you can just return the name immediately without iteration.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😳you're right.

I've updated it and added support for a custom schema definition.

@smkhalsa smkhalsa requested a review from klavs February 4, 2020 20:32
@klavs klavs merged commit cb95e95 into gql-dart:master Feb 4, 2020
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.

None yet

2 participants