-
Notifications
You must be signed in to change notification settings - Fork 120
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
Conversation
@klavs can we merge this? |
OperationDefinitionNode op, [ | ||
Map<OperationType, String> rootTypes = defaultRootTypes, | ||
]) => | ||
schema.definitions |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
0c00314
to
e6f4dad
Compare
Per #40, this PR maps the operation to the appropriate type.