Expand description
GraphQL executors.
In order to choose the strategy for executing GraphQL queries, the following GraphQL executors are provided:
-
NonblockingIt spawns the task for executing GraphQL queries by using the Tokio’s default executor. It also notify the start of the blocking section to the runtime by using the blocking API provided bytokio_threadpool. -
CurrentThreadIt executes the GraphQL queries on the current thread. -
WithSpawnerIt spawn the task for executing GraphQL queries by using the specified task executor. Unlike toNonblocking, it does not notify the start of blocking section to the runtime.
Structs§
Traits§
- Schema
- Trait representing a GraphQL schema.
- Shared
Schema - A helper trait for representing a
Schemawhich can be shared between threads.
Functions§
- current_
thread - Create a GraphQL executor from the specified
RootNode. - nonblocking
- Create a GraphQL executor from the specified
RootNode. - with_
spawner - Create a GraphQL executor from the specified
RootNodeand task executor.