Skip to content

Fixes #198 - Add support for lists of Scalar field arguments that are already coerced - #320

Merged
oliemansm merged 1 commit into
graphql-java-kickstart:masterfrom
symbaloo:198-scalar-input-types
Nov 14, 2019
Merged

oliemansm merged 1 commit into
graphql-java-kickstart:masterfrom
symbaloo:198-scalar-input-types

Conversation

@arian

@arian arian commented Oct 10, 2019 •

Copy link
Copy Markdown
Contributor

See #198

graphql-java already converts scalar types and lists of scalar types
when used as field arguments.

However the MethodFieldResolver basically serialized that object and
deserialized the value to use it as argument value while it's not really
necessary.

The serialization/deserialization also failed when the (Java) type of the
scalar is not easily serializable/deserializable (for example with
private fields)

…d arguments that are already coerced

graphql-java already converts scalar types and lists of scalar types
when used as field arguments.

However the MethodFieldResolver basically serialized that object and
deserialized the value to use it as argument value while it's not really
necessary.

The serialization/deserialization also failed when the (Java) type of the
scalar is not easily serializable/deserializable (for example with
private fields)
@arian
arian force-pushed the 198-scalar-input-types branch from abd4e66 to 44fdca1 Compare October 10, 2019 13:22
@arian arian changed the title Add support for lists of Scalar field arguments that are already coerced Fixes #198 - Add support for lists of Scalar field arguments that are already coerced Oct 18, 2019
@oliemansm
oliemansm merged commit ffafbec into graphql-java-kickstart:master Nov 14, 2019
@oliemansm oliemansm added this to the 5.7.0 milestone Nov 14, 2019
@Eetami

Eetami commented Dec 19, 2019

Copy link
Copy Markdown

This seems to not work when the input argument is non-nullable, for example:

myQuery(input: CustomScalar!)

is correctly coerced, but then passed to Jackson converter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants