-
Notifications
You must be signed in to change notification settings - Fork 1.1k
A generalised configuration mechanism #3945
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
base: master
Are you sure you want to change the base?
Conversation
* including some JVM wide settings and some per execution settings | ||
* as well as experimental ones | ||
*/ | ||
public class GraphQLConfiguration { |
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.
Other name suggestion GraphQlSettings
and hence the name of GraphQl.configuration()
would change
@@ -175,7 +175,7 @@ public static ParserOptions getDefaultSdlParserOptions() { | |||
* | |||
* This static can be set to true to allow the behavior of version 16.x or before. | |||
* | |||
* @param options - the new default JVM parser options for operation parsing | |||
* @param options - the new default JVM parser options for SDL parsing |
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.
found a java doc mistake
Test Results 313 files 313 suites 53s ⏱️ Results for commit 2f9728e. ♻️ This comment has been updated with latest results. |
return INCREMENTAL_SUPPORT_CFG; | ||
} | ||
|
||
public static class ParserCfg { |
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.
parse config here is repeated - so sure you can go direct to ParserOptions and thats not too bad a name to discover
BUT
This makes it central and future ones can be here
…ntext wrapping mechanism
…ntext wrapping mechanism - renamed as extraordinary
…ntext wrapping mechanism - renamed as unusual
…ntext wrapping mechanism - renamed as config
Discoverability of how to config special parts of graphql-java is low
This tries to centralise that by providing a simple DSL and a common place to set both JVM wide and execution specific configuration
This is currently
but it could be
or
but I kinda like how it comes off the
GraphQl
object for discoverability