Skip to content
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

@link should report an error on unknown directives #6046

Closed
martinbonnin opened this issue Jul 10, 2024 · 2 comments
Closed

@link should report an error on unknown directives #6046

martinbonnin opened this issue Jul 10, 2024 · 2 comments
Assignees

Comments

@martinbonnin
Copy link
Contributor

Description

extend schema @link(
  url: "https://specs.apollo.dev/nullability/v0.4", 
  # Unknown directive are allowed here
  import: ["@semanticNonNull", "@foobar"]
)
@martinbonnin
Copy link
Contributor Author

Fixed in #6164. This now fails with:

> A failure occurred while executing com.apollographql.apollo.gradle.internal.GenerateSources
   > e: /Users/martinbonnin/Downloads/test-stuff/src/main/graphql/schema.graphqls: (5, 15): Apollo: unknown definition '@foobar'
     ----------------------------------------------------
     [4]:
     [5]:extend schema @link(
     [6]:    url: "https://specs.apollo.dev/nullability/v0.4",
     ----------------------------------------------------

Copy link
Contributor

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant