Interface GraphQlExecCore
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
GraphQlFieldExec<K>
- All Known Implementing Classes:
GraphQlExec,GraphQlFieldExecImpl
Common interface for graphql-based execution - whether its for individual fields
or whole documents.
-
Method Summary
-
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 @one 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:
closein interfaceAutoCloseable
-