Support custom directives
See original GitHub issueHi,
I am not sure if there is a support for custom directives or i’m doing something wrong. I have this code:
directive @myDirective on FIELD
type Query{
getData:String! @myDirective
}
And i get this error:
[graphql] Directive “noLogin” may not be used on FIELD_DEFINITION. (KnownDirectives)
How i can fix it?
BTW: Awesome extension.
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Creating schema directives - Apollo GraphQL Docs
Supported locations. Your custom directive can appear only in the schema locations you list after the on keyword in the directive's definition. The...
Read more >Using Custom Directives with Apollo Federation
In this post, I'm going to walk through how you can add custom directives to implementing services' schemas when using Apollo Federation.
Read more >support custom directives in federated schemas · Issue #145
Conveying custom directives from federated schemas to the gateway is the first step to supporting centralized logic in the gateway for ...
Read more >How to use and create custom directives in Angular
Creating a custom directive is just like creating an Angular component. To create a custom directive we have to replace @Component decorator ...
Read more >Attribute directives - Angular
This section walks you through creating a highlight directive that sets the background color of the host element ... Directives do not support...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it solved, Thanks to @Mayank1791989.
I believe this has been resolved @kabytaa?