Skip to content

Commit 9d987a0

Browse files
Alan-ChaErikWittern
authored andcommitted
Fix name isInputObjectType
Signed-off-by: Alan Cha <[email protected]>
1 parent f7cc9a2 commit 9d987a0

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

packages/openapi-to-graphql/lib/auth_builder.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/auth_builder.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/schema_builder.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare type GetGraphQLTypeParams = {
1010
operation?: Operation;
1111
data: PreprocessingData;
1212
iteration?: number;
13-
isMutation?: boolean;
13+
isInputObjectType?: boolean;
1414
};
1515
declare type GetArgsParams = {
1616
def?: DataDefinition;
@@ -21,7 +21,7 @@ declare type GetArgsParams = {
2121
/**
2222
* Creates and returns a GraphQL (Input) Type for the given JSON schema.
2323
*/
24-
export declare function getGraphQLType({ def, operation, data, iteration, isMutation }: GetGraphQLTypeParams): GraphQLType;
24+
export declare function getGraphQLType({ def, operation, data, iteration, isInputObjectType }: GetGraphQLTypeParams): GraphQLType;
2525
/**
2626
* Creates an object with the arguments for resolving a GraphQL (Input) Object
2727
* Type

packages/openapi-to-graphql/lib/schema_builder.js

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/schema_builder.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/src/auth_builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const getViewerAnyAuthOT = (
236236
const type = getGraphQLType({
237237
def,
238238
data,
239-
isMutation: true
239+
isInputObjectType: true
240240
})
241241

242242
args[Oas3Tools.sanitizeAndStore(protocolName, data.saneMap)] = { type }

0 commit comments

Comments
 (0)