Interface GraphQLOperationRequest


public interface GraphQLOperationRequest
The contract for GraphQL request
  • Method Details

    • getOperationType

      GraphQLOperation getOperationType()
      Type of GraphQL operation. Can be one of GraphQLOperation
      Returns:
      type of GraphQL operation
    • getOperationName

      String getOperationName()
      Name of GraphQL operation.
      Returns:
      name of GraphQL operation
    • getAlias

      String getAlias()
      Alias of GraphQL operation.
      Returns:
      alias of GraphQL operation
    • getInput

      Map<String,Object> getInput()
      Input for for GraphQL operation. Where: - key is input field name - value is input field value
      Returns:
      input data for GraphQL operation
    • getUseObjectMapperForInputSerialization

      default Set<String> getUseObjectMapperForInputSerialization()
      Fields that require serialization using ObjectMapper.writeValueAsString(Object)

      Values should be defined here in format: GraphqlObjectName.fieldName or GraphqlTypeName

      If just type is specified, then all fields of this type will be serialized using ObjectMapper.

      E.g.:

      • Person.createdDateTime
      • ZonedDateTime
      Returns:
      Set of types and fields that should be serialized using ObjectMapper.writeValueAsString(Object)