Skip to content

Typesafe client tries to fetch input-only fields #2325

@schulzp

Description

@schulzp

Hi!

Thank you for this GQL implementation! I am using it (in version 2.16.0) as part of a quarkus 3.30 application an ran into an issue with the typesafe client. If I mark a field's getter with @Ignore, the field only shows up in the input type derived from my class. However, the typesafe client tries to fetch it. That causes a server-side validation error since the field is not declared in the GQL type.

By debugging I saw, that io.smallrye.graphql.client.impl.typesafe.reflection.TypeInfo#isGraphQlField only checks the field declaration but does not look at getters, hence, the @Ignore is ignored. Is that intentional or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions