diff --git a/.gitignore b/.gitignore index b8b0f75b1f..e252fa8eaa 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,49 @@ docs/_build/ \.classpath \.project \.settings/ -/.nb-gradle/ \ No newline at end of file +/.nb-gradle/ + +HELP.md +.gradle +build/ +!gradle/wrapper/gradle-wrapper.jar +!**/src/main/** +!**/src/test/** + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr +out/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* \ No newline at end of file diff --git a/src/main/java/graphql/GraphQL.java b/src/main/java/graphql/GraphQL.java index d0242a48e3..e57b4a9683 100644 --- a/src/main/java/graphql/GraphQL.java +++ b/src/main/java/graphql/GraphQL.java @@ -1,20 +1,7 @@ package graphql; -import graphql.execution.AbortExecutionException; -import graphql.execution.AsyncExecutionStrategy; -import graphql.execution.AsyncSerialExecutionStrategy; -import graphql.execution.Execution; -import graphql.execution.ExecutionId; -import graphql.execution.ExecutionIdProvider; -import graphql.execution.ExecutionStrategy; -import graphql.execution.SubscriptionExecutionStrategy; -import graphql.execution.ValueUnboxer; -import graphql.execution.instrumentation.ChainedInstrumentation; -import graphql.execution.instrumentation.DocumentAndVariables; -import graphql.execution.instrumentation.Instrumentation; -import graphql.execution.instrumentation.InstrumentationContext; -import graphql.execution.instrumentation.InstrumentationState; -import graphql.execution.instrumentation.SimpleInstrumentation; +import graphql.execution.*; +import graphql.execution.instrumentation.*; import graphql.execution.instrumentation.dataloader.DataLoaderDispatcherInstrumentation; import graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters; import graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters; @@ -38,6 +25,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; import java.util.concurrent.atomic.AtomicReference; +import java.util.function.BiFunction; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.UnaryOperator; @@ -50,15 +38,15 @@ * This class is where all graphql-java query execution begins. It combines the objects that are needed * to make a successful graphql query, with the most important being the {@link graphql.schema.GraphQLSchema schema} * and the {@link graphql.execution.ExecutionStrategy execution strategy} - * + *

* Building this object is very cheap and can be done on each execution if necessary. Building the schema is often not * as cheap, especially if its parsed from graphql IDL schema format via {@link graphql.schema.idl.SchemaParser}. - * + *

* The data for a query is returned via {@link ExecutionResult#getData()} and any errors encountered as placed in * {@link ExecutionResult#getErrors()}. * *

Runtime Exceptions

- * + *

* Runtime exceptions can be thrown by the graphql engine if certain situations are encountered. These are not errors * in execution but rather totally unacceptable conditions in which to execute a graphql query. *