Interface IUnionTypeOptions
(experimental) Properties for configuring an Union Type.
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public interface IUnionTypeOptions
Syntax (vb)
Public Interface IUnionTypeOptions
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
GraphqlApi api;
var string = GraphqlType.String();
var human = new ObjectType("Human", new ObjectTypeOptions { Definition = new Dictionary<string, IField> { { "name", string } } });
var droid = new ObjectType("Droid", new ObjectTypeOptions { Definition = new Dictionary<string, IField> { { "name", string } } });
var starship = new ObjectType("Starship", new ObjectTypeOptions { Definition = new Dictionary<string, IField> { { "name", string } } });
var search = new UnionType("Search", new UnionTypeOptions {
Definition = new [] { human, droid, starship }
});
api.AddType(search);
Synopsis
Properties
Definition | (experimental) the object types for this union type. |
Properties
Definition
(experimental) the object types for this union type.
IIntermediateType[] Definition { get; }
Property Value
Remarks
Stability: Experimental