Interface IResolvableFieldOptions
(experimental) Properties for configuring a resolvable field.
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public interface IResolvableFieldOptions : IFieldOptions
Syntax (vb)
Public Interface IResolvableFieldOptions
Inherits IFieldOptions
Remarks
Stability: Experimental
Options: responseMappingTemplate - the mapping template for responses from this resolver
ExampleMetadata: infused
Examples
GraphqlApi api;
ObjectType filmNode;
MappingTemplate dummyRequest;
MappingTemplate dummyResponse;
var string = GraphqlType.String();
var int = GraphqlType.Int();
api.AddMutation("addFilm", new ResolvableField(new ResolvableFieldOptions {
ReturnType = filmNode.Attribute(),
Args = new Dictionary<string, GraphqlType> { { "name", string }, { "film_number", int } },
DataSource = api.AddNoneDataSource("none"),
RequestMappingTemplate = dummyRequest,
ResponseMappingTemplate = dummyResponse
}));
Synopsis
Properties
DataSource | (experimental) The data source creating linked to this resolvable field. |
PipelineConfig | (experimental) configuration of the pipeline resolver. |
RequestMappingTemplate | (experimental) The request mapping template for this resolver. |
ResponseMappingTemplate | (experimental) The response mapping template for this resolver. |
Properties
DataSource
(experimental) The data source creating linked to this resolvable field.
virtual BaseDataSource DataSource { get; }
Property Value
Remarks
Default: - no data source
Stability: Experimental
PipelineConfig
(experimental) configuration of the pipeline resolver.
virtual IAppsyncFunction[] PipelineConfig { get; }
Property Value
Remarks
Default: - no pipeline resolver configuration An empty array or undefined prop will set resolver to be of type unit
Stability: Experimental
RequestMappingTemplate
(experimental) The request mapping template for this resolver.
virtual MappingTemplate RequestMappingTemplate { get; }
Property Value
Remarks
Default: - No mapping template
Stability: Experimental
ResponseMappingTemplate
(experimental) The response mapping template for this resolver.
virtual MappingTemplate ResponseMappingTemplate { get; }
Property Value
Remarks
Default: - No mapping template
Stability: Experimental