pub struct CreateResolverRequest {
pub api_id: String,
pub caching_config: Option<CachingConfig>,
pub data_source_name: Option<String>,
pub field_name: String,
pub kind: Option<String>,
pub pipeline_config: Option<PipelineConfig>,
pub request_mapping_template: String,
pub response_mapping_template: Option<String>,
pub sync_config: Option<SyncConfig>,
pub type_name: String,
}
Fields§
§api_id: String
The ID for the GraphQL API for which the resolver is being created.
caching_config: Option<CachingConfig>
The caching configuration for the resolver.
data_source_name: Option<String>
The name of the data source for which the resolver is being created.
field_name: String
The name of the field to attach the resolver to.
kind: Option<String>
The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.
pipeline_config: Option<PipelineConfig>
The PipelineConfig
.
request_mapping_template: String
The mapping template to be used for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
response_mapping_template: Option<String>
The mapping template to be used for responses from the data source.
sync_config: Option<SyncConfig>
The SyncConfig
for a resolver attached to a versioned datasource.
type_name: String
The name of the Type
.
Trait Implementations§
Source§impl Clone for CreateResolverRequest
impl Clone for CreateResolverRequest
Source§fn clone(&self) -> CreateResolverRequest
fn clone(&self) -> CreateResolverRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more