Skip to content

Commit

Permalink
Remove unneccessary datasource creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndejaco2 committed Oct 25, 2023
1 parent 9f7bcb7 commit 7b36e23
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/aws-cdk-lib/aws-appsync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,20 +378,12 @@ const firstApi = new appsync.GraphqlApi(this, 'FirstSourceAPI', {
definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.merged-api-1.graphql')),
});

firstApi.addNoneDataSource('FirstSourceDS', {
name: 'FirstSourceDS',
});

// second source API
const secondApi = new appsync.GraphqlApi(this, 'SecondSourceAPI', {
name: 'SecondSourceAPI',
definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.merged-api-2.graphql')),
});

secondApi.addNoneDataSource('SecondSourceDS', {
name: 'SecondSourceDS',
});

// Merged API
const mergedApi = new appsync.GraphqlApi(this, 'MergedAPI', {
name: 'MergedAPI',
Expand Down

0 comments on commit 7b36e23

Please sign in to comment.