Class ResolvableField
(experimental) Resolvable Fields build upon Graphql Types and provide fields that can resolve into operations on a data source.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class ResolvableField : Field, IField
Syntax (vb)
Public Class ResolvableField
Inherits Field
Implements IField
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
GraphqlApi api;
MappingTemplate dummyRequest;
MappingTemplate dummyResponse;
var info = new ObjectType("Info", new ObjectTypeOptions {
Definition = new Dictionary<string, IField> {
{ "node", new ResolvableField(new ResolvableFieldOptions {
ReturnType = GraphqlType.String(),
Args = new Dictionary<string, GraphqlType> {
{ "id", GraphqlType.String() }
},
DataSource = api.AddNoneDataSource("none"),
RequestMappingTemplate = dummyRequest,
ResponseMappingTemplate = dummyResponse
}) }
}
});
Synopsis
Constructors
ResolvableField(IResolvableFieldOptions) | |
ResolvableField(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ResolvableField(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
FieldOptions | (experimental) The options to make this field resolvable. |
Constructors
ResolvableField(IResolvableFieldOptions)
public ResolvableField(IResolvableFieldOptions options)
Parameters
- options IResolvableFieldOptions
Remarks
Stability: Experimental
ResolvableField(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ResolvableField(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ResolvableField(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ResolvableField(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
FieldOptions
(experimental) The options to make this field resolvable.
public override IResolvableFieldOptions FieldOptions { get; }
Property Value
Overrides
Remarks
Default: - not a resolvable field
Stability: Experimental