Skip to content

[aws-appsync] refactor schema definition mode #9301

@BryanPan342

Description

@BryanPan342

Currently appsync schema definition mode is not strongly typed.

Use Case

Make schema definition more clearly configured. Set up for code-first schema definition.

Proposed Solution

by file

const api = new appsync.GraphQLApi(stack, 'api', {
  schemaDefinition: appsync.SchemaDefinition.FILE,
  schemaDefinitionFile: fileLocation
});

by code

const api = new appsync.GraphQLApi(stack, 'api', {
  schemaDefinition: appsync.SchemaDefinition.CODE,
});

api.updateDefinition(definition);
  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Labels

@aws-cdk/aws-appsyncRelated to AWS AppSyncfeature-requestA feature should be added or improved.in-progressThis issue is being actively worked on.p2

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions