Join GitHub today
allow custom directives #53
We can add the ability to define a directive for runtime use, but (as far as I can tell) adding them for use annotating the SDL would be more difficult, due to lack of support in graphql-js:
Can you talk more about the type of directives you are looking to add and how they would be used?
So Basically my question was motivated with context the of trying to use Nexus in already existing Project or pipeline (which is schema first)
with sth like
i understand that will be implementing workaround (until it's figured out in graphql-js) perhaps by repacing
without this feature switching to Nexus seems like I have to leave behind everything that already works
Yes - you can add these in graphql-tools, but It's not quite as simple to do programmatically because they needed to be added to the AST for the schema, which is possible but takes a bit more work.
I've started work on it in this branch, it's something I plan on getting to but it still needs quite a bit of work to get the type generation, etc working properly.