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

Solidify Resolver API #23

Open
jdolle opened this issue Apr 12, 2018 · 0 comments
Open

Solidify Resolver API #23

jdolle opened this issue Apr 12, 2018 · 0 comments
Labels
💅 Polish Clean up work 🚀 New Feature Feature request

Comments

@jdolle
Copy link
Owner

jdolle commented Apr 12, 2018

"Resolvers" are actually wrapped in another function that accepts the options. Wrapping this is unnecessary and only exists to maintain the current resolver arguments the exact same as GraphQL.
I believe the "resolver" should instead be a PrefabResolver class that has a name getter and resolver function on it. This resolver function should accept the normal graphql arguments, but additionally have the config. Config should either be the first or last argument of the function.

@jdolle jdolle added 💅 Polish Clean up work 🚀 New Feature Feature request labels Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💅 Polish Clean up work 🚀 New Feature Feature request
Projects
None yet
Development

No branches or pull requests

1 participant