We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
typeResolver
nodeDefinitions
AFAICT graphql-js allows you to leave out resolveType here:
graphql-js
resolveType
https://github.com/graphql/graphql-js/blob/a149b89a3047f38750eaade1f220eb1317eb9217/src/type/definition.js#L684-L685
In which case it will fall back to using getTypeOf/isTypeOf
getTypeOf
isTypeOf
The problem is, nodeDefinitions doesn't seem to allow you to leave out the typeResolver function:
graphql-relay-js/src/node/node.js
Line 55 in 3dd1fc3
Making this optional would certainly reduce a lot of boilerplate code
The text was updated successfully, but these errors were encountered:
(FWIW, this is more of a Flow/type issue, not an in-practice issue)
Sorry, something went wrong.
Yep, good call, we should do this.
b775e51
Awesome, thanks 👍
dschafer
No branches or pull requests
AFAICT
graphql-js
allows you to leave outresolveType
here:https://github.com/graphql/graphql-js/blob/a149b89a3047f38750eaade1f220eb1317eb9217/src/type/definition.js#L684-L685
In which case it will fall back to using
getTypeOf
/isTypeOf
The problem is,
nodeDefinitions
doesn't seem to allow you to leave out thetypeResolver
function:graphql-relay-js/src/node/node.js
Line 55 in 3dd1fc3
Making this optional would certainly reduce a lot of boilerplate code
The text was updated successfully, but these errors were encountered: