Netflix / Netflix/dgs-codegen

Save modified null values in input types

Open
#752 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.