Class ObjectTypeOptions
(experimental) Properties for configuring an Object Type.
Inheritance
System.Object
ObjectTypeOptions
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class ObjectTypeOptions : Object, IObjectTypeOptions, IIntermediateTypeOptions
Syntax (vb)
Public Class ObjectTypeOptions
Inherits Object
Implements IObjectTypeOptions, IIntermediateTypeOptions
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
ObjectTypeOptions() |
Properties
Definition | (experimental) the attributes of this type. |
Directives | (experimental) the directives for this object type. |
InterfaceTypes | (experimental) The Interface Types this Object Type implements. |
Constructors
ObjectTypeOptions()
public ObjectTypeOptions()
Properties
Definition
(experimental) the attributes of this type.
public IDictionary<string, IField> Definition { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, IField>
Remarks
Stability: Experimental
Directives
(experimental) the directives for this object type.
public Directive[] Directives { get; set; }
Property Value
Remarks
Default: - no directives
Stability: Experimental
InterfaceTypes
(experimental) The Interface Types this Object Type implements.
public InterfaceType[] InterfaceTypes { get; set; }
Property Value
Remarks
Default: - no interface types
Stability: Experimental