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

[client] support query directives #1282

Closed
dariuszkuc opened this issue Oct 25, 2021 Discussed in #1281 · 0 comments · Fixed by #1341
Closed

[client] support query directives #1282

dariuszkuc opened this issue Oct 25, 2021 Discussed in #1281 · 0 comments · Fixed by #1341
Labels
module: client Issue affects the client code

Comments

@dariuszkuc
Copy link
Collaborator

Discussed in #1281

Originally posted by FidasL October 25, 2021
Hi!
I have custom graphql-server and graphql-client both developed with graphql-kotlin library. On the client side, I want to use schema directives on topLevelObject:

query {
  students @include(if: false) {
    id
    firstName
    lastName
  }
}

But after execute query like this from client, request serialization fails, because it generates non-nullable types in Result class:

  public data class Result(
    public val students: List<Student> // -> this type should be nullable
  )

Please, is this an issue, or do I need to configure something differently? Our client version is 4.1.1. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: client Issue affects the client code
Development

Successfully merging a pull request may close this issue.

1 participant