question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support custom directives

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kabytaacommented, Jun 30, 2018

Yes, it solved, Thanks to @Mayank1791989.

0reactions
kumarharshcommented, Jan 26, 2018

I believe this has been resolved @kabytaa?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found