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

Typesafe GraphQL client does not see NonNull annotations #18194

Closed
jmartisk opened this issue Jun 28, 2021 · 2 comments · Fixed by #18297
Closed

Typesafe GraphQL client does not see NonNull annotations #18194

jmartisk opened this issue Jun 28, 2021 · 2 comments · Fixed by #18297
Assignees
Labels
Milestone

Comments

@jmartisk
Copy link
Contributor

In native mode, if the @GraphQLClientApi contains methods whose parameters are @org.eclipse.microprofile.graphql.NonNull, the typesafe client doesn't see the annotation at runtime so it assumes a wrong GraphQL type, so a query might be rejected by the server, with something like

- Validation error of type VariableTypeMismatch: Variable type 'String' doesn't match expected type 'String!' @ 'all' [(1:38)] {classification=ValidationError})
@quarkus-bot
Copy link

quarkus-bot bot commented Jun 28, 2021

/cc @phillip-kruger

@jmartisk jmartisk self-assigned this Jun 28, 2021
@jmartisk
Copy link
Contributor Author

jmartisk commented Jul 1, 2021

This will be fixed by upgrading SmallRye GraphQL to 1.2.6

@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jul 4, 2021
@gsmet gsmet modified the milestones: 2.1 - main, 2.0.1.Final Jul 5, 2021
geoand added a commit to geoand/quarkus that referenced this issue Jul 22, 2021
…tionTest + DevServices

This is done in order to get us off of host networking (which only works on Linux).
The way this works is that when @QuarkusIntegrationTest is meant to launch a container
and DevServices are needed, a build item is pushed into the build that forces
the DevServices to launch in TestContainers' SHARED Network.
The id of network is then used when launching the application as a container.

Fixes: quarkusio#18194
geoand added a commit to geoand/quarkus that referenced this issue Jul 23, 2021
…tionTest + DevServices

This is done in order to get us off of host networking (which only works on Linux).
The way this works is that when @QuarkusIntegrationTest is meant to launch a container
and DevServices are needed, a build item is pushed into the build that forces
the DevServices to launch in TestContainers' SHARED Network.
The id of network is then used when launching the application as a container.

Fixes: quarkusio#18194
geoand added a commit to geoand/quarkus that referenced this issue Jul 28, 2021
…tionTest + DevServices

This is done in order to get us off of host networking (which only works on Linux).
The way this works is that when @QuarkusIntegrationTest is meant to launch a container
and DevServices are needed, a build item is pushed into the build that forces
the DevServices to launch in TestContainers' SHARED Network.
The id of network is then used when launching the application as a container.

Fixes: quarkusio#18194
geoand added a commit to geoand/quarkus that referenced this issue Jul 28, 2021
…tionTest + DevServices

This is done in order to get us off of host networking (which only works on Linux).
The way this works is that when @QuarkusIntegrationTest is meant to launch a container
and DevServices are needed, a build item is pushed into the build that forces
the DevServices to launch in TestContainers' SHARED Network.
The id of network is then used when launching the application as a container.

Fixes: quarkusio#18194
geoand added a commit to geoand/quarkus that referenced this issue Jul 28, 2021
…tionTest + DevServices

This is done in order to get us off of host networking (which only works on Linux).
The way this works is that when @QuarkusIntegrationTest is meant to launch a container
and DevServices are needed, a build item is pushed into the build that forces
the DevServices to launch in TestContainers' SHARED Network.
The id of network is then used when launching the application as a container.

Fixes: quarkusio#18194
geoand added a commit to geoand/quarkus that referenced this issue Jul 28, 2021
…tionTest + DevServices

This is done in order to get us off of host networking (which only works on Linux).
The way this works is that when @QuarkusIntegrationTest is meant to launch a container
and DevServices are needed, a build item is pushed into the build that forces
the DevServices to launch in TestContainers' SHARED Network.
The id of network is then used when launching the application as a container.

Fixes: quarkusio#18194
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.

2 participants