-
Notifications
You must be signed in to change notification settings - Fork 23
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
Improvements in the partition code after PR feedback #596
base: master
Are you sure you want to change the base?
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.
I think the interface definition seems wrong, but otherwise fine
inputValueDef: GraphQLInputValueDefinition, | ||
context: NadelFieldPartitionContext, | ||
): String? { | ||
return null |
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.
Should this have a default? doesn't seem right
I think the noop
version below should hardcode null, but the user should be otherwise forced to add an impl given this is the only function in this interface
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.
Yep makes sense 👍
Most of @gnawf 's suggestions are addressed here. More PRs will come to address the remaining ones and also @temaEmelyan 's suggestion about the
Payload
interface 👍