Interface GraphQlExecCore

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
GraphQlFieldExec<K>
All Known Implementing Classes:
GraphQlExec, GraphQlFieldExecImpl

public interface GraphQlExecCore extends AutoCloseable
Common interface for graphql-based execution - whether its for individual fields or whole documents.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    boolean
    Whether this provider is expected to yield at most 1 result.
  • Method Details

    • isSingle

      boolean isSingle()
      Whether this provider is expected to yield at most 1 result. The client can use this information to e.g. omit starting an array in the output. However, the data provider may not necessarily know whether this information is truthful, because it may rely on user provided mapping information: For example, a field might be tagged with &#064one but during execution bindings amounting to multiple values are encountered; If a violation is encountered during runtime then an exception should be raised.
    • abort

      void abort()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable