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.

Add support for repeatable directives

See original GitHub issue

Describe the bug symbols not defined in the correct order, seem to say they’re not defined.

ie;

interface Node @source(...) { }

directive @source(...) repeatable on ENUM | OBJECT | INTERFACE | UNION | INPUT_OBJECT | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | ARGUMENT_DEFINITION | ENUM_VALUE

Doesn’t like that source isn’t defined—and yet it is.

Which leads me into a second issue;

It doesn’t like the repeatable keyword used.

To Reproduce

  1. make the above your schema
  2. look at errors

Expected behavior Be happy

Version and Environment Details Operation system: Windows10 IDE name and version: WebStorm 2020.1.3 Plugin version: 2.5.0

Additional context

Seems to not like anything defined after it had been used

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:11

github_iconTop GitHub Comments

17reactions
vepanimascommented, Jan 10, 2021

@lorado hi, I remember about it and plan to implement it during this month.

9reactions
vepanimascommented, Mar 29, 2021

@stayallive @maraisr actually I’m working on it right now. I’m preparing a v3 update in a separate branch https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/tree/v3, where the process of working with a schema is completely reworked, which will help resolve a lot of issues, especially in scenarios when the schema is split between different files. Also, I’m implementing all the missing parts in the spec: descriptions for schema definitions, extend schema definitions and repeatable directives. We plan to start testing it this week and release ASAP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support for repeatable directives · Issue #351 - GitHub
Describe the bug symbols not defined in the correct order, seem to say they're not defined. ie; interface Node @source(...) { } directive...
Read more >
Federation-specific GraphQL directives
To check whether your subgraph library supports repeatable directives, see the repeatable @key item in Federation-compatible subgraph implementations.
Read more >
Developers - Add support for repeatable directives - - Bountysource
Add support for repeatable directives. ... GraphQL language support for IntelliJ IDEA and WebStorm, including Relay.QL tagged templates in JavaScript and ...
Read more >
Directives | GraphQL Kotlin
GraphQL supports repeatable directives (e.g. Apollo federation allows developers to specify multiple @key directives).
Read more >
Directives - GraphQL .NET
Repeatable directives are often useful when the same directive should be used with different arguments at a single location, especially in cases where ......
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