Class FieldOptions
(experimental) Properties for configuring a field.
Inheritance
System.Object
FieldOptions
Implements
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class FieldOptions : Object, IFieldOptions
Syntax (vb)
Public Class FieldOptions
Inherits Object
Implements IFieldOptions
Remarks
Stability: Experimental
Options: args - the variables and types that define the arguments
i.e. { string: GraphqlType, string: GraphqlType }
ExampleMetadata: infused
Examples
var field = new Field(new FieldOptions {
ReturnType = GraphqlType.String(),
Args = new Dictionary<string, GraphqlType> {
{ "argument", GraphqlType.String() }
}
});
var type = new InterfaceType("Node", new IntermediateTypeOptions {
Definition = new Dictionary<string, IField> { { "test", field } }
});
Synopsis
Constructors
FieldOptions() |
Properties
Args | (experimental) The arguments for this field. |
Directives | (experimental) the directives for this field. |
ReturnType | (experimental) The return type for this field. |
Constructors
FieldOptions()
public FieldOptions()
Properties
Args
(experimental) The arguments for this field.
public IDictionary<string, GraphqlType> Args { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, GraphqlType>
Remarks
i.e. type Example (first: String second: String) {}
Default: - no arguments
Stability: Experimental
Directives
(experimental) the directives for this field.
public Directive[] Directives { get; set; }
Property Value
Remarks
Default: - no directives
Stability: Experimental
ReturnType
(experimental) The return type for this field.
public GraphqlType ReturnType { get; set; }
Property Value
Remarks
Stability: Experimental