Class Field
(experimental) Fields build upon Graphql Types and provide typing and arguments.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class Field : GraphqlType, IField
Syntax (vb)
Public Class Field
Inherits GraphqlType
Implements IField
Remarks
Stability: Experimental
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
Field(IFieldOptions) | |
Field(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Field(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
FieldOptions | (experimental) The options for this field. |
Methods
ArgsToString() | (experimental) Generate the args string of this resolvable field. |
DirectivesToString(AuthorizationType[]) | (experimental) Generate the directives for this field. |
Constructors
Field(IFieldOptions)
public Field(IFieldOptions options)
Parameters
- options IFieldOptions
Remarks
Stability: Experimental
Field(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Field(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Field(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Field(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
FieldOptions
(experimental) The options for this field.
public virtual IResolvableFieldOptions FieldOptions { get; }
Property Value
Remarks
Default: - no arguments
Stability: Experimental
Methods
ArgsToString()
(experimental) Generate the args string of this resolvable field.
public override string ArgsToString()
Returns
System.String
Overrides
Remarks
Stability: Experimental
DirectivesToString(AuthorizationType[])
(experimental) Generate the directives for this field.
public override string DirectivesToString(AuthorizationType[] modes = null)
Parameters
- modes AuthorizationType[]
Returns
System.String
Overrides
Remarks
Stability: Experimental