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

Build failure when adding Federation dependency #734

Open
agarcia-narvar opened this issue Feb 9, 2023 · 0 comments
Open

Build failure when adding Federation dependency #734

agarcia-narvar opened this issue Feb 9, 2023 · 0 comments
Labels

Comments

@agarcia-narvar
Copy link

Description

I am using the following dependencies:
graphql-java-tools: 13.0.2
com.graphql-java-kickstart: 14.1.0
com.graphql-java: 19.2

Since I am planning to use graphql Federation, I am trying to add the following dependency:
federation-graphql-java-support: 2.3.0

When I add it to my POM, I see the following error:

Caused by: graphql.kickstart.tools.SchemaError: Expected type 'FieldSet' to be a GraphQLInputType, but it wasn't!  Was a type only permitted for object types incorrectly used as an input type, or vice-versa?
	at graphql.kickstart.tools.SchemaParser.determineType(SchemaParser.kt:379)
	at graphql.kickstart.tools.SchemaParser.determineInputType(SchemaParser.kt:397)
	at graphql.kickstart.tools.SchemaParser.determineInputType(SchemaParser.kt:389)
	at graphql.kickstart.tools.SchemaParser.createArgument(SchemaParser.kt:302)
	at graphql.kickstart.tools.SchemaParser.createDirective(SchemaParser.kt:322)
	at graphql.kickstart.tools.SchemaParser.parseSchemaObjects(SchemaParser.kt:84)
	at graphql.kickstart.tools.SchemaParser.makeExecutableSchema(SchemaParser.kt:111)

I haven't changed any of my code to add in any Federation Schema Transformation, so I'm a bit confused why it would even error.

Expected behavior

The application starts without errors

Actual behavior

The application fails to start, due to the above error

Steps to reproduce the bug

  1. Have a spring boot application with the following dependencies:
    I am using the following dependencies:
    graphql-java-tools: 13.0.2
    com.graphql-java-kickstart: 14.1.0
    com.graphql-java: 19.2

  2. Then add the follow federation dependency:
    federation-graphql-java-support: 2.3.0

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

No branches or pull requests

1 participant