-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Ability to write custom resolvers in JavaScript #280
Comments
We support custom javascript scripting with the @script directive. It won't be too hard to extend that same code to build custom resolvers in JS. The |
Here's some example code for a custom redis resolver. https://pkg.go.dev/github.com/dosco/graphjin/core#Resolver |
Thank you for considering this! I meant more like adding JS resolvers without having to compile GraphJin, i.e. by adding some configuration like "resolver (for something) is redisResolver-1.0.js" and then redisResolver-1.0.js is a file with some function (or better yet a class, so that you can have some persistent connection), which does all the heavy lifting. That way people only with JS knowledge (or those who use standalone binary) will be able to add them. |
I think that could be pretty useful too
Thank you!
The text was updated successfully, but these errors were encountered: