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

Add ability to supply custom ObjectMapper to clients #1973

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

kilink
Copy link
Member

@kilink kilink commented Aug 1, 2024

Add constructors / static factory methods to allow supplying a custom ObjectMapper to the GraphQL clients, which can be useful when the user needs precise control over serialization.

Additionally, remove deprecated DefaultGraphQLClient, fix various tests, and simplify serialization of the request body to avoid needing the KotlinModule installed at all.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been deprecated for a very long time, but I do see a bunch of internal usage (Netflix) still.
Not sure if it's worth removing it right now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I brought back the deprecated client, but didn't implement this feature there.

@kilink kilink force-pushed the client-custom-object-mapper branch 3 times, most recently from 7243743 to 96ee7e2 Compare August 1, 2024 23:36
Add constructors / static factory methods to allow supplying a custom ObjectMapper
to the GraphQL clients, which can be useful when the user needs precise control
over serialization.

Additionally, remove deprecated DefaultGraphQLClient, fix various tests, and simplify
serialization of the request body to avoid needing the KotlinModule installed at all.
@kilink kilink force-pushed the client-custom-object-mapper branch from 96ee7e2 to 3a8f6f5 Compare August 1, 2024 23:59
@kilink kilink merged commit 8d978b6 into master Aug 2, 2024
3 checks passed
@kilink kilink deleted the client-custom-object-mapper branch August 2, 2024 06:53
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