Skip to content

Output schema definition? #201

@philipws

Description

@philipws

What is the correct way to resolve and output the schema definition? The schema is added to AppSync successfully so does exist, however, I always get "" in CfnOutputs.

this.awsAppsyncSchema = new cdk.CfnOutput(this, "awsAppsyncSchema", {
	value: this.resolve( base_api.apiSchema.definition ),
});

In the appsync-alpha I successfully used this, but .definition isn't available when I update it to appsync.ISchema.

this.awsAppsyncSchema = new cdk.CfnOutput(this, "awsAppsyncSchema", {
	value: this.resolve( ( base_api.api.schema as unknown as { schema: appsync.Schema } ).schema.definition ),
});

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions