-
Notifications
You must be signed in to change notification settings - Fork 575
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
Feature/custom directives #152
Feature/custom directives #152
Conversation
Nice! A little snipet to illustrate how it’s works maybe? :) |
I guess I have my answer here ^^ ardatan/graphql-tools#518 I will try this today :) |
Thanks a lot! This looks great @giautm! As @fabien0102 mentioned, would be great if you could also add an example using this feature in this PR. |
@schickling : I think we should have some unit-test, I'm a little worried when adding a new feature. |
I completely agree, @giautm. Would be great if you could add some testing setup. Either unit or integration tests. |
Example added! It's works perfectly, nice job @giautm 😉 For the integration tests, we can use directly the If this solution can fit with the project, I can begin to work on a POC and make a PR to open the discussion 😉 |
Add a working example for custom directives
This looks really great! I've merged this already since the changes seem very straightforward. @fabien0102 @giautm can you create a new PR for the testing setup? I'd recommend using |
Always |
@schickling Please note that the example may not work due to the package version of graphql-yoga inside the example (https://github.com/graphcool/graphql-yoga/blob/master/examples/custom-directives/package.json) I don't know yet how you deals with this, so carreful (I tried with (it can be a good idea to put |
I just tried the custom-directives example and it doesn't seem to work. The directive resolvers are never invoked. |
@sflahave would you mind creating a new issue for this? |
Sure - actually it works after updating to |
Thanks a lot @sflahave. Can you create a PR updating the example version then? |
@schickling - sure, I'd be happy to do that. |
No description provided.