interface IntermediateTypeOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppSync.IntermediateTypeOptions |
![]() | software.amazon.awscdk.services.appsync.IntermediateTypeOptions |
![]() | aws_cdk.aws_appsync.IntermediateTypeOptions |
![]() | @aws-cdk/aws-appsync » IntermediateTypeOptions |
Properties for configuring an Intermediate Type.
Example
const node = new appsync.InterfaceType('Node', {
definition: {
id: appsync.GraphqlType.string({ isRequired: true }),
},
});
const demo = new appsync.ObjectType('Demo', {
interfaceTypes: [ node ],
definition: {
version: appsync.GraphqlType.string({ isRequired: true }),
},
});
Properties
Name | Type | Description |
---|---|---|
definition | { [string]: IField } | the attributes of this type. |
directives? | Directive [] | the directives for this object type. |
definition
Type:
{ [string]:
IField
}
the attributes of this type.
directives?
Type:
Directive
[]
(optional, default: no directives)
the directives for this object type.