All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.execution.input.GraphQLBatchedInvocationInput Maven / Gradle / Ivy

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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy