Skip to content

Commit 05717ee

Browse files
committed
fix last spec
1 parent 83e82d1 commit 05717ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/utilities/__tests__/buildASTSchema-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ describe('Schema Builder', () => {
743743
field2: Int @deprecated(reason: "Because I said so")
744744
enum: MyEnum
745745
field3(oldArg: String @deprecated, arg: String): String
746-
field4(oldArg: String @deprecated(reason: "why not?"), arg: String): String
746+
field4(oldArg: String @deprecated(reason: "Why not?"), arg: String): String
747747
field5(arg: MyInput): String
748748
}
749749
`;

src/utilities/extendSchema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ export function extendSchemaImpl(
501501
type,
502502
description: getDescription(arg, options),
503503
defaultValue: valueFromAST(arg.defaultValue, type),
504+
deprecationReason: getDeprecationReason(arg),
504505
astNode: arg,
505506
};
506507
}

0 commit comments

Comments
 (0)