Skip to content

Commit 527e05a

Browse files
Correct error message about resolve specified on input fields (#1496)
Fixes #709
1 parent c2dfccf commit 527e05a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/type/__tests__/definition-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ describe('Type System: Input Object fields must not have resolvers', () => {
10271027
},
10281028
});
10291029
expect(() => inputObjType.getFields()).to.throw(
1030-
'SomeInputObject.f field type has a resolve property, ' +
1030+
'SomeInputObject.f field has a resolve property, ' +
10311031
'but Input Types cannot define resolvers.',
10321032
);
10331033
});
@@ -1043,7 +1043,7 @@ describe('Type System: Input Object fields must not have resolvers', () => {
10431043
},
10441044
});
10451045
expect(() => inputObjType.getFields()).to.throw(
1046-
'SomeInputObject.f field type has a resolve property, ' +
1046+
'SomeInputObject.f field has a resolve property, ' +
10471047
'but Input Types cannot define resolvers.',
10481048
);
10491049
});

src/type/definition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ function defineInputFieldMap(
12441244
};
12451245
invariant(
12461246
!field.hasOwnProperty('resolve'),
1247-
`${config.name}.${fieldName} field type has a resolve property, but ` +
1247+
`${config.name}.${fieldName} field has a resolve property, but ` +
12481248
'Input Types cannot define resolvers.',
12491249
);
12501250
resultFieldMap[fieldName] = field;

0 commit comments

Comments
 (0)