Skip to content

Move DirectiveBehavior out of graphql.schema.idl package #364

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

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

vojtapol
Copy link
Member

@vojtapol vojtapol commented Feb 17, 2020

Fixes #282

This is super hacky but unfortunately the only way that lets us reuse the directive wiring logic from graphql-java. Since the inner DTO class Parameters is still package-private and we have to pass an instance of the Parameters into the helper we must resort to reflection.

Since this only happens during start up I am not worried about performance. However, we must keep an eye on this class since breaking changes won't be caught by the compiler.

@vojtapol vojtapol requested a review from oliemansm February 17, 2020 19:29
@oliemansm oliemansm merged commit 6d099d2 into master Feb 19, 2020
@vojtapol
Copy link
Member Author

Another option would be to copy-paste the code from graphql-java instead of using reflection. We could revisit that option if there are any issues with the reflection.

@oliemansm oliemansm added this to the 6.0.0 milestone Feb 20, 2020
@oryan-block oryan-block deleted the bugfix/282 branch September 6, 2022 17:13
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.

Java 11 Platform Module System, error: module graphql.java.tools reads package graphql.schema.idl from both graphql.java and graphql.java.tools
2 participants