|
85 | 85 | @PublicApi
|
86 | 86 | public class GraphQL {
|
87 | 87 |
|
| 88 | + /** |
| 89 | + * This allows you to control "unusual" aspects of the GraphQL system |
| 90 | + * including some JVM wide settings |
| 91 | + * <p> |
| 92 | + * This is named unusual because in general we don't expect you to |
| 93 | + * have to make ths configuration by default, but you can opt into certain features |
| 94 | + * or disable them if you want to. |
| 95 | + * |
| 96 | + * @return a {@link GraphQLUnusualConfiguration} object |
| 97 | + */ |
| 98 | + public static GraphQLUnusualConfiguration unusualConfiguration() { |
| 99 | + return new GraphQLUnusualConfiguration(); |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * This allows you to control "unusual" per execution aspects of the GraphQL system |
| 104 | + * <p> |
| 105 | + * This is named unusual because in general we don't expect you to |
| 106 | + * have to make ths configuration by default, but you can opt into certain features |
| 107 | + * or disable them if you want to. |
| 108 | + * |
| 109 | + * @return a {@link GraphQLUnusualConfiguration.GraphQLContextConfiguration} object |
| 110 | + */ |
| 111 | + public static GraphQLUnusualConfiguration.GraphQLContextConfiguration unusualConfiguration(ExecutionInput executionInput) { |
| 112 | + return new GraphQLUnusualConfiguration.GraphQLContextConfiguration(executionInput.getGraphQLContext()); |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * This allows you to control "unusual" per execution aspects of the GraphQL system |
| 117 | + * <p> |
| 118 | + * This is named unusual because in general we don't expect you to |
| 119 | + * have to make ths configuration by default, but you can opt into certain features |
| 120 | + * or disable them if you want to. |
| 121 | + * |
| 122 | + * @return a {@link GraphQLUnusualConfiguration.GraphQLContextConfiguration} object |
| 123 | + */ |
| 124 | + public static GraphQLUnusualConfiguration.GraphQLContextConfiguration unusualConfiguration(ExecutionInput.Builder executionInputBuilder) { |
| 125 | + return new GraphQLUnusualConfiguration.GraphQLContextConfiguration(executionInputBuilder.graphQLContext()); |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * This allows you to control "unusual" per execution aspects of the GraphQL system |
| 130 | + * <p> |
| 131 | + * This is named unusual because in general we don't expect you to |
| 132 | + * have to make ths configuration by default, but you can opt into certain features |
| 133 | + * or disable them if you want to. |
| 134 | + * |
| 135 | + * @return a {@link GraphQLUnusualConfiguration.GraphQLContextConfiguration} object |
| 136 | + */ |
| 137 | + public static GraphQLUnusualConfiguration.GraphQLContextConfiguration unusualConfiguration(GraphQLContext graphQLContext) { |
| 138 | + return new GraphQLUnusualConfiguration.GraphQLContextConfiguration(graphQLContext); |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * This allows you to control "unusual" per execution aspects of the GraphQL system |
| 143 | + * <p> |
| 144 | + * This is named unusual because in general we don't expect you to |
| 145 | + * have to make ths configuration by default, but you can opt into certain features |
| 146 | + * or disable them if you want to. |
| 147 | + * |
| 148 | + * @return a {@link GraphQLUnusualConfiguration.GraphQLContextConfiguration} object |
| 149 | + */ |
| 150 | + public static GraphQLUnusualConfiguration.GraphQLContextConfiguration unusualConfiguration(GraphQLContext.Builder graphQLContextBuilder) { |
| 151 | + return new GraphQLUnusualConfiguration.GraphQLContextConfiguration(graphQLContextBuilder); |
| 152 | + } |
| 153 | + |
88 | 154 | private final GraphQLSchema graphQLSchema;
|
89 | 155 | private final ExecutionStrategy queryStrategy;
|
90 | 156 | private final ExecutionStrategy mutationStrategy;
|
|
0 commit comments