Skip to content
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

Type of GraphQLFieldResolver #595

Closed
jamiehodge opened this issue Nov 18, 2016 · 1 comment
Closed

Type of GraphQLFieldResolver #595

jamiehodge opened this issue Nov 18, 2016 · 1 comment

Comments

@jamiehodge
Copy link

Would it not be possible to add GraphQLOutputType to the GraphQLFieldConfig type parameters in order to constrain the return type of the GraphQLFieldResolver?

https://github.com/graphql/graphql-js/blob/master/src/type/definition.js#L587-L593

I noticed that the args type for GraphQLFieldResolver has been relaxed to any. Wouldn't it be possible to use $ObjMap to constrain both args and output?

@jamiehodge
Copy link
Author

Duplicate of #574

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant