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

GraphQL federation directives do not appear in the schema #30129

Closed
alexpoletaev opened this issue Jan 2, 2023 · 3 comments · Fixed by #30143
Closed

GraphQL federation directives do not appear in the schema #30129

alexpoletaev opened this issue Jan 2, 2023 · 3 comments · Fixed by #30143
Assignees
Labels
Milestone

Comments

@alexpoletaev
Copy link

Describe the bug

Once federation annotations are set in the code and Apollo federation is enabled in the config, the federation specific directives must appear in the graphql schema

Expected behavior

GraphQL federation directives are visible in the schema

Actual behavior

GraphQL federation directives do not appear in the schema

How to Reproduce?

Reproducer: quarkus-graphql-issue.zip

  • unzip a reproducer
  • start service
  • go to graphql UI
  • execute next query:
    query { _service { sdl } }
  • observe that no federation directives present in the graphql schema

Output of uname -a or ver

No response

Output of java -version

openjdk version "17.0.5" 2022-10-18

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.15.1.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 7.5.1

Additional information

A workaround: index smallrye module manually and federation directives will appear in the schema:

quarkus:
  index-dependency:
    "smallrye-graphql-api":
      group-id: io.smallrye
      artifact-id: smallrye-graphql-api
@alexpoletaev alexpoletaev added the kind/bug Something isn't working label Jan 2, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Jan 2, 2023

/cc @jmartisk(graphql), @phillip-kruger(graphql)

@jmartisk
Copy link
Contributor

jmartisk commented Jan 3, 2023

Interesting, somehow I thought I'd implemented adding these relevant annotations to the Jandex index, but it's not there. That piece of code must've gotten lost somewhere. Anyway thanks for reporting, I'll submit a PR to fix this

@alexpoletaev
Copy link
Author

Thanks, @jmartisk

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

Successfully merging a pull request may close this issue.

3 participants