Interface DataFetchingConversion<I,​O>

Type Parameters:
I -
O -
All Known Subinterfaces:
Factory<I,​O>, GraphQLConversion<I,​O>
All Known Implementing Classes:
PendingDataFetchingConversion
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface DataFetchingConversion<I,​O>
Conversion that has access to DataFetchingEnvironment.
  • Method Summary

    Modifier and Type Method Description
    default <T> DataFetchingConversion<I,​T> and​(DataFetchingConversion<O,​T> next)
    Combine this conversion with another one, converting via this first and then via the other conversion.
    O convert​(graphql.schema.DataFetchingEnvironment environment, I object)
    Convert from the input type to the output type.
  • Method Details

    • convert

      O convert​(graphql.schema.DataFetchingEnvironment environment, I object)
      Convert from the input type to the output type.
      Parameters:
      environment -
      object -
      Returns:
    • and

      default <T> DataFetchingConversion<I,​T> and​(DataFetchingConversion<O,​T> next)
      Combine this conversion with another one, converting via this first and then via the other conversion.
      Type Parameters:
      T -
      Parameters:
      next -
      Returns: