ChilliCream / ChilliCream/graphql-platform

Change naming for generated classes

Open
#7,951 0 comments 1 reaction 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?

Im trying to map this query to my c# code:

Image

this is my graphql file:

Image

and this is my generated code:

Image

The solution you'd like

either awoid the reserved names automaticcly or allow overriding classes name during generation

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 reviewing the GraphQL file and generated C# shown in the issue to identify which names conflict with C# reserved names. Then trace the Strawberry Shake generation path that produces those classes and determine whether automatic renaming or user-defined class names is the intended behavior. Done means generated classes can be mapped without reserved-name conflicts, with coverage for the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.