-
Notifications
You must be signed in to change notification settings - Fork 2k
Allow to add optional args to fields implemented from interfaces #1493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to add optional args to fields implemented from interfaces #1493
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single typo nit, but this is great. Thank you!
'field AnotherInterface.field.', | ||
locations: [{ line: 11, column: 44 }, { line: 7, column: 9 }], | ||
'Object field AnotherObject.field includes required argument ' + | ||
'requiredArg that is missing it the Interface field ' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'requiredArg that is missing from the Interface field '
src/type/validate.js
Outdated
`is of required type ${inspect(objectArg.type)} but is not also ` + | ||
`provided by the Interface field ${iface.name}.${fieldName}.`, | ||
`Object field ${object.name}.${fieldName} includes required ` + | ||
`argument ${argName} that is missing it the Interface field ` + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
argument ${argName} that is missing from the Interface field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjmahone I'm grammatically challenged 😄
so I very appreciate your reviews 👍
b5ac3d3
to
87fcec8
Compare
@mjmahone Fixed. |
I reviewed all
isNonNullType
calls and it the last one that needs to be fixed to complete #1274