Interface DataFetchContext


public interface DataFetchContext
The context object for DataFetcher invocations.
Since:
1.0.0
Author:
Christian Beikov
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    Returns the value registered for the property in this DataFetchContext, or null if no value was found.
    Returns the current query session.
  • Method Details

    • findProperty

      <T> T findProperty(String key)
      Returns the value registered for the property in this DataFetchContext, or null if no value was found.
      Type Parameters:
      T - The value type
      Parameters:
      key - The property name
      Returns:
      The value registered for the property in this DataFetchContext or null
    • getSession

      QuerySession getSession()
      Returns the current query session.
      Returns:
      the current query session