interface ISchema
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.ISchema |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#ISchema |
Java | software.amazon.awscdk.services.appsync.ISchema |
Python | aws_cdk.aws_appsync.ISchema |
TypeScript (source) | aws-cdk-lib » aws_appsync » ISchema |
Implemented by
Schema
Interface for implementing your own schema.
Useful for providing schema's from sources other than assets
Methods
Name | Description |
---|---|
bind(api, options?) | Binds a schema string to a GraphQlApi. |
bind(api, options?)
public bind(api: IGraphqlApi, options?: SchemaBindOptions): ISchemaConfig
Parameters
- api
IGraphql
— the api to bind the schema to.Api - options
Schema
— configuration for bind behavior.Bind Options
Returns
Binds a schema string to a GraphQlApi.