| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c0cf41c commit 072165b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -565,7 +565,7 @@ public Map<String, GraphQLDirective> getDirectivesByName() { | |||
| 565 | 565 | * | |
| 566 | 566 | * @return the directive or null if there is not one with that name | |
| 567 | 567 | */ | |
| 568 | - public GraphQLDirective getDirective(String directiveName) { | ||
| 568 | + public @Nullable GraphQLDirective getDirective(String directiveName) { | ||
| 569 | 569 | return directiveDefinitionsHolder.getDirective(directiveName); | |
| 570 | 570 | } | |
| 571 | 571 | ||
@@ -1215,6 +1215,7 @@ public FastBuilder(GraphQLCodeRegistry.Builder codeRegistryBuilder, | |||
| 1215 | 1215 | * multiple FastBuilder instances. | |
| 1216 | 1216 | * | |
| 1217 | 1217 | * @param type the named type to add | |
| 1218 | + * | ||
| 1218 | 1219 | * @return this builder for chaining | |
| 1219 | 1220 | */ | |
| 1220 | 1221 | public FastBuilder addType(GraphQLNamedType type) { | |
@@ -1264,6 +1265,7 @@ public FastBuilder addType(GraphQLNamedType type) { | |||
| 1264 | 1265 | * All non-root types added via this method will be included in {@link GraphQLSchema#getAdditionalTypes()}. | |
| 1265 | 1266 | * | |
| 1266 | 1267 | * @param types the named types to add | |
| 1268 | + * | ||
| 1267 | 1269 | * @return this builder for chaining | |
| 1268 | 1270 | */ | |
| 1269 | 1271 | public FastBuilder addTypes(Collection<? extends GraphQLNamedType> types) { | |
@@ -1275,6 +1277,7 @@ public FastBuilder addTypes(Collection<? extends GraphQLNamedType> types) { | |||
| 1275 | 1277 | * Adds a directive definition to the schema. | |
| 1276 | 1278 | * | |
| 1277 | 1279 | * @param directive the directive to add | |
| 1280 | + * | ||
| 1278 | 1281 | * @return this builder for chaining | |
| 1279 | 1282 | */ | |
| 1280 | 1283 | public FastBuilder additionalDirective(GraphQLDirective directive) { | |
@@ -1296,6 +1299,7 @@ public FastBuilder additionalDirective(GraphQLDirective directive) { | |||
| 1296 | 1299 | * Adds multiple directive definitions to the schema. | |
| 1297 | 1300 | * | |
| 1298 | 1301 | * @param directives the directives to add | |
| 1302 | + * | ||
| 1299 | 1303 | * @return this builder for chaining | |
| 1300 | 1304 | */ | |
| 1301 | 1305 | public FastBuilder additionalDirectives(Collection<? extends GraphQLDirective> directives) { | |
@@ -1307,6 +1311,7 @@ public FastBuilder additionalDirectives(Collection<? extends GraphQLDirective> d | |||
| 1307 | 1311 | * Adds a schema-level directive (deprecated, use applied directives). | |
| 1308 | 1312 | * | |
| 1309 | 1313 | * @param directive the directive to add | |
| 1314 | + * | ||
| 1310 | 1315 | * @return this builder for chaining | |
| 1311 | 1316 | */ | |
| 1312 | 1317 | public FastBuilder withSchemaDirective(GraphQLDirective directive) { | |
@@ -1318,6 +1323,7 @@ public FastBuilder withSchemaDirective(GraphQLDirective directive) { | |||
| 1318 | 1323 | * Adds multiple schema-level directives. | |
| 1319 | 1324 | * | |
| 1320 | 1325 | * @param directives the directives to add | |
| 1326 | + * | ||
| 1321 | 1327 | * @return this builder for chaining | |
| 1322 | 1328 | */ | |
| 1323 | 1329 | public FastBuilder withSchemaDirectives(Collection<? extends GraphQLDirective> directives) { | |
@@ -1329,6 +1335,7 @@ public FastBuilder withSchemaDirectives(Collection<? extends GraphQLDirective> d | |||
| 1329 | 1335 | * Adds a schema-level applied directive. | |
| 1330 | 1336 | * | |
| 1331 | 1337 | * @param applied the applied directive to add | |
| 1338 | + * | ||
| 1332 | 1339 | * @return this builder for chaining | |
| 1333 | 1340 | */ | |
| 1334 | 1341 | public FastBuilder withSchemaAppliedDirective(GraphQLAppliedDirective applied) { | |
@@ -1342,6 +1349,7 @@ public FastBuilder withSchemaAppliedDirective(GraphQLAppliedDirective applied) { | |||
| 1342 | 1349 | * Adds multiple schema-level applied directives. | |
| 1343 | 1350 | * | |
| 1344 | 1351 | * @param appliedList the applied directives to add | |
| 1352 | + * | ||
| 1345 | 1353 | * @return this builder for chaining | |
| 1346 | 1354 | */ | |
| 1347 | 1355 | public FastBuilder withSchemaAppliedDirectives(Collection<? extends GraphQLAppliedDirective> appliedList) { | |
@@ -1355,6 +1363,7 @@ public FastBuilder withSchemaAppliedDirectives(Collection<? extends GraphQLAppli | |||
| 1355 | 1363 | * Sets the schema definition (AST). | |
| 1356 | 1364 | * | |
| 1357 | 1365 | * @param def the schema definition | |
| 1366 | + * | ||
| 1358 | 1367 | * @return this builder for chaining | |
| 1359 | 1368 | */ | |
| 1360 | 1369 | public FastBuilder definition(SchemaDefinition def) { | |
@@ -1366,6 +1375,7 @@ public FastBuilder definition(SchemaDefinition def) { | |||
| 1366 | 1375 | * Sets the schema extension definitions (AST). | |
| 1367 | 1376 | * | |
| 1368 | 1377 | * @param defs the extension definitions | |
| 1378 | + * | ||
| 1369 | 1379 | * @return this builder for chaining | |
| 1370 | 1380 | */ | |
| 1371 | 1381 | public FastBuilder extensionDefinitions(List<SchemaExtensionDefinition> defs) { | |
@@ -1377,6 +1387,7 @@ public FastBuilder extensionDefinitions(List<SchemaExtensionDefinition> defs) { | |||
| 1377 | 1387 | * Sets the schema description. | |
| 1378 | 1388 | * | |
| 1379 | 1389 | * @param description the description | |
| 1390 | + * | ||
| 1380 | 1391 | * @return this builder for chaining | |
| 1381 | 1392 | */ | |
| 1382 | 1393 | public FastBuilder description(String description) { | |
@@ -1388,6 +1399,7 @@ public FastBuilder description(String description) { | |||
| 1388 | 1399 | * Sets the introspection schema type. | |
| 1389 | 1400 | * | |
| 1390 | 1401 | * @param type the introspection schema type | |
| 1402 | + * | ||
| 1391 | 1403 | * @return this builder for chaining | |
| 1392 | 1404 | */ | |
| 1393 | 1405 | public FastBuilder introspectionSchemaType(GraphQLObjectType type) { | |
@@ -1399,6 +1411,7 @@ public FastBuilder introspectionSchemaType(GraphQLObjectType type) { | |||
| 1399 | 1411 | * Enables or disables schema validation. | |
| 1400 | 1412 | * | |
| 1401 | 1413 | * @param enabled true to enable validation, false to disable | |
| 1414 | + * | ||
| 1402 | 1415 | * @return this builder for chaining | |
| 1403 | 1416 | */ | |
| 1404 | 1417 | public FastBuilder withValidation(boolean enabled) { | |
@@ -1415,9 +1428,10 @@ public FastBuilder withValidation(boolean enabled) { | |||
| 1415 | 1428 | * should not be reused with another FastBuilder. | |
| 1416 | 1429 | * | |
| 1417 | 1430 | * @return the built schema | |
| 1431 | + * | ||
| 1418 | 1432 | * @throws InvalidSchemaException if validation is enabled and the schema is invalid | |
| 1419 | - * @throws AssertException if a type reference cannot be resolved or if an interface/union | ||
| 1420 | - * type is missing a type resolver | ||
| 1433 | + * @throws AssertException if a type reference cannot be resolved or if an interface/union | ||
| 1434 | + * type is missing a type resolver | ||
| 1421 | 1435 | */ | |
| 1422 | 1436 | public GraphQLSchema build() { | |
| 1423 | 1437 | // Validate type resolvers for all interfaces and unions | |
| Back | FazBrowse Home | New Git URL |
0 commit comments