Save modified null values in input types
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 217
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Please add the ability to save the change of a field with a null value in input types.
Description:
Currently, GraphQLQueryRequest has the ability to either not serialize null values in input types at all, or serialize all fields with null values via the option allowNullablePropertyInputValues. It would be great to serialize only some fields with null values, only those that have changed, so that when assigning a null value via a builder or setter for a generated input type, the change is saved and this field is added during serialization with a null value.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at GraphQLQueryRequest and the allowNullablePropertyInputValues option, then trace how generated input types serialize values assigned through builders or setters. Confirm the intended behavior for changed null fields versus unchanged null fields, while preserving the existing all-or-none option behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, kotlin
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100