Skip to content

Commit f7d4e56

Browse files
committed
fixes
1 parent 3d6f018 commit f7d4e56

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

src/type/__tests__/definition-test.ts

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -627,17 +627,15 @@ describe('Type System: Input Objects', () => {
627627
f: { type: ScalarType, defaultValue: 3 },
628628
},
629629
});
630-
expect(inputObjType.getFields()).to.deep.equal({
631-
f: {
632-
coordinate: 'SomeInputObject.f',
633-
name: 'f',
634-
description: undefined,
635-
type: ScalarType,
636-
defaultValue: { value: 3 },
637-
deprecationReason: undefined,
638-
extensions: undefined,
639-
astNode: undefined,
640-
},
630+
expect(inputObjType.getFields().f).to.deep.include({
631+
coordinate: 'SomeInputObject.f',
632+
name: 'f',
633+
description: undefined,
634+
type: ScalarType,
635+
defaultValue: { value: 3 },
636+
deprecationReason: undefined,
637+
extensions: {},
638+
astNode: undefined,
641639
});
642640
});
643641

@@ -651,17 +649,15 @@ describe('Type System: Input Objects', () => {
651649
},
652650
},
653651
});
654-
expect(inputObjType.getFields()).to.deep.equal({
655-
f: {
656-
coordinate: 'SomeInputObject.f',
657-
name: 'f',
658-
description: undefined,
659-
type: ScalarType,
660-
defaultValue: { literal: { kind: 'IntValue', value: '3' } },
661-
deprecationReason: undefined,
662-
extensions: undefined,
663-
astNode: undefined,
664-
},
652+
expect(inputObjType.getFields().f).to.deep.include({
653+
coordinate: 'SomeInputObject.f',
654+
name: 'f',
655+
description: undefined,
656+
type: ScalarType,
657+
defaultValue: { literal: { kind: 'IntValue', value: '3' } },
658+
deprecationReason: undefined,
659+
extensions: {},
660+
astNode: undefined,
665661
});
666662
});
667663

src/type/definition.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,7 @@ export class GraphQLInputField extends GraphQLSchemaElement {
17121712
type: this.type,
17131713
defaultValue: this.defaultValue?.value,
17141714
defaultValueLiteral: this.defaultValue?.literal,
1715+
deprecationReason: this.deprecationReason,
17151716
extensions: this.extensions,
17161717
astNode: this.astNode,
17171718
};

0 commit comments

Comments
 (0)