Skip to content

Support ArgumentValue as payload attribute in GraphQlClient #1166

Closed as not planned
@bclozel

Description

@bclozel

As seen in this StackOverflow question, developers are expecting to use ArgumentValue<T> as a way of expressing a T value being present/absent/null, not only in GraphQL controllers but also on the client side with GraphQlClient and GraphQlTester.

Currently, if we try to use ArgumentValue<T> on the client side for an input type like this:

record UpdateImageInput (Long id, int version, ArgumentValue<String> title) {
}

This will result in Jackson serializing ArgumentValue itself with its value and ommitted properties.
We should look into ways of supporting this use case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions