Skip to content

Commit

Permalink
Merge branch 'main' into lambdaArns35
Browse files Browse the repository at this point in the history
  • Loading branch information
vasireddy99 authored Nov 6, 2023
2 parents d4c551c + 7c497ee commit 5a9b58d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export abstract class Definition {
/**
* Schema from schema object.
* @param schema SchemaFile.fromAsset(filePath: string) allows schema definition through schema.graphql file
* @returns API Source with schema from file
* @returns Definition with schema from file
*/
public static fromSchema(schema: ISchema): Definition {
return {
Expand All @@ -347,7 +347,7 @@ export abstract class Definition {
/**
* Schema from file, allows schema definition through schema.graphql file
* @param filePath the file path of the schema file
* @returns API Source with schema from file
* @returns Definition with schema from file
*/
public static fromFile(filePath: string): Definition {
return this.fromSchema(SchemaFile.fromAsset(filePath));
Expand All @@ -356,7 +356,7 @@ export abstract class Definition {
/**
* Schema from existing AppSync APIs - used for creating a AppSync Merged API
* @param sourceApiOptions Configuration for AppSync Merged API
* @returns API Source with for AppSync Merged API
* @returns Definition with for AppSync Merged API
*/
public static fromSourceApis(sourceApiOptions: SourceApiOptions): Definition {
return {
Expand Down Expand Up @@ -409,7 +409,7 @@ export interface GraphqlApiProps {
* SchemaFile.fromAsset(filePath: string) allows schema definition through schema.graphql file
*
* @default - schema will be generated code-first (i.e. addType, addObjectType, etc.)
* @deprecated use apiSource.schema instead
* @deprecated use Definition.schema instead
*/
readonly schema?: ISchema;
/**
Expand Down

0 comments on commit 5a9b58d

Please sign in to comment.