interface GraphqlTypeOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.GraphqlTypeOptions |
Java | software.amazon.awscdk.services.appsync.GraphqlTypeOptions |
Python | aws_cdk.aws_appsync.GraphqlTypeOptions |
TypeScript (source) | @aws-cdk/aws-appsync » GraphqlTypeOptions |
Options for GraphQL Types.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appsync from '@aws-cdk/aws-appsync';
declare const intermediateType: appsync.IIntermediateType;
const graphqlTypeOptions: appsync.GraphqlTypeOptions = {
intermediateType: intermediateType,
isList: false,
isRequired: false,
isRequiredList: false,
};
Properties
Name | Type | Description |
---|---|---|
intermediate | IIntermediate | the intermediate type linked to this attribute. |
is | boolean | property determining if this attribute is a list i.e. if true, attribute would be [Type]. |
is | boolean | property determining if this attribute is non-nullable i.e. if true, attribute would be Type! |
is | boolean | property determining if this attribute is a non-nullable list i.e. if true, attribute would be [ Type ]! or if isRequired true, attribe would be [ Type! ]! |
intermediateType?
Type:
IIntermediate
(optional, default: no intermediate type)
the intermediate type linked to this attribute.
isList?
Type:
boolean
(optional, default: false)
property determining if this attribute is a list i.e. if true, attribute would be [Type].
isRequired?
Type:
boolean
(optional, default: false)
property determining if this attribute is non-nullable i.e. if true, attribute would be Type!
isRequiredList?
Type:
boolean
(optional, default: false)
property determining if this attribute is a non-nullable list i.e. if true, attribute would be [ Type ]! or if isRequired true, attribe would be [ Type! ]!