ChilliCream / ChilliCream/graphql-platform

Configure JSON serialization options

Open
#8,965 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🌶️ strawberry shake
Dominant language
C#
Stars
5.8k
Forks
810
Avg merge
15h 39m
Merged PRs (30d)
98

Description

Product

Strawberry Shake

Is your feature request related to a problem?

I would like to pass custom JsonSerializerOptions (JsonIgnoreCondition.WhenWritingNull) for GraphQL requests serializer. As I understand, that's currently is not possible.

I use StrawberryShake.Transport.Http v15.1.11

The solution you'd like

Ability to provide custom JsonSerializerOptions during client DI registration.

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 by locating the Strawberry Shake.Transport.Http client DI registration and the GraphQL request serializer. Verify how custom JsonSerializerOptions, including JsonIgnoreCondition.WhenWritingNull, can be supplied during registration and confirm that the options affect serialized GraphQL requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.