graphql.kickstart.execution.input.GraphQLBatchedInvocationInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-kickstart-javax Show documentation
Show all versions of graphql-java-kickstart-javax Show documentation
relay.js-compatible GraphQL servlet
The newest version!
package graphql.kickstart.execution.input;
import static java.util.stream.Collectors.toList;
import graphql.ExecutionInput;
import graphql.kickstart.execution.context.ContextSetting;
import java.util.List;
/** Interface representing a batched input. */
public interface GraphQLBatchedInvocationInput extends GraphQLInvocationInput {
/** @return each individual input in the batch, configured with a context. */
List getInvocationInputs();
default List getExecutionInputs() {
return getInvocationInputs().stream()
.map(GraphQLSingleInvocationInput::getExecutionInput)
.collect(toList());
}
ContextSetting getContextSetting();
}