Skip to content

Commit c5af337

Browse files
modoscIvanGoncharov
authored andcommitted
fix last spec
1 parent 19834d2 commit c5af337

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/utilities/__tests__/buildASTSchema-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ describe('Schema Builder', () => {
753753
field2: Int @deprecated(reason: "Because I said so")
754754
enum: MyEnum
755755
field3(oldArg: String @deprecated, arg: String): String
756-
field4(oldArg: String @deprecated(reason: "why not?"), arg: String): String
756+
field4(oldArg: String @deprecated(reason: "Why not?"), arg: String): String
757757
field5(arg: MyInput): String
758758
}
759759
`;

src/utilities/extendSchema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ export function extendSchemaImpl(
512512
type,
513513
description: getDescription(arg, options),
514514
defaultValue: valueFromAST(arg.defaultValue, type),
515+
deprecationReason: getDeprecationReason(arg),
515516
astNode: arg,
516517
};
517518
}

0 commit comments

Comments
 (0)