interface IIntermediateType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.IIntermediateType |
Java | software.amazon.awscdk.services.appsync.IIntermediateType |
Python | aws_cdk.aws_appsync.IIntermediateType |
TypeScript (source) | @aws-cdk/aws-appsync » IIntermediateType |
Implemented by
Enum
, Input
, Interface
, Object
, Union
Obtainable from
Graphql
.addType()
, Schema
.addType()
Intermediate Types are types that includes a certain set of fields that define the entirety of your schema.
Properties
Name | Type | Description |
---|---|---|
definition | { [string]: IField } | the attributes of this type. |
name | string | the name of this type. |
directives? | Directive [] | the directives for this object type. |
interface | Interface [] | The Interface Types this Intermediate Type implements. |
intermediate | IIntermediate | the intermediate type linked to this attribute (i.e. an interface or an object). |
resolvers? | Resolver [] | The resolvers linked to this data source. |
definition
Type:
{ [string]:
IField
}
the attributes of this type.
name
Type:
string
the name of this type.
directives?
Type:
Directive
[]
(optional, default: no directives)
the directives for this object type.
interfaceTypes?
Type:
Interface
[]
(optional, default: no interface types)
The Interface Types this Intermediate Type implements.
intermediateType?
Type:
IIntermediate
(optional, default: no intermediate type)
the intermediate type linked to this attribute (i.e. an interface or an object).
resolvers?
Type:
Resolver
[]
(optional)
The resolvers linked to this data source.
Methods
Name | Description |
---|---|
add | Add a field to this Intermediate Type. |
attribute(options?) | Create an GraphQL Type representing this Intermediate Type. |
to | Generate the string of this object type. |
Field(options)
addpublic addField(options: AddFieldOptions): void
Parameters
- options
Add
Field Options
Add a field to this Intermediate Type.
attribute(options?)
public attribute(options?: BaseTypeOptions): GraphqlType
Parameters
- options
Base
— the options to configure this attribute - isList - isRequired - isRequiredList.Type Options
Returns
Create an GraphQL Type representing this Intermediate Type.
String()
topublic toString(): string
Returns
string
Generate the string of this object type.