ExecutableSchema
class ExecutableSchema
The entry point to serve GraphQL requests:
validates the document (or retrieves and validates a persisted document)
coerces variables
executes the resulting PreparedRequest
ExecutableSchema also includes handling for persisted documents. This part is not technically part of the main GraphQL spec, but it is popular that we add first party support to it.
Functions
Link copied to clipboard
suspend fun execute(request: GraphQLRequest, executionContext: ExecutionContext = ExecutionContext.Empty): GraphQLResponse
suspend fun execute(preparedRequest: PreparedRequest, executionContext: ExecutionContext = ExecutionContext.Empty): GraphQLResponse
Link copied to clipboard
fun subscribe(request: GraphQLRequest, executionContext: ExecutionContext = ExecutionContext.Empty): Flow<SubscriptionEvent>
fun subscribe(preparedRequest: PreparedRequest, executionContext: ExecutionContext = ExecutionContext.Empty): Flow<SubscriptionEvent>