ChilliCream / ChilliCream/graphql-platform

`Name` cannot be used in StrawBerry Shake schemas

Open
#6,555 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is there an existing issue for this?
  • I have searched the existing issues
Product

Hot Chocolate

Describe the bug

If your SDL contains any references to the scalar Name the scalar is not recognized.

even when you add this schema extension:

"Defines the serializationType of a scalar"
directive @serializationType(Name: String!) on SCALAR

"Defines the runtimeType of a scalar"
directive @runtimeType(Name: String!) on SCALAR

"Represents a integer value that is greater or equal to 0"
extend scalar Name
@serializationType(Name: "global::System.String")
@runtimeType(Name: "global::System.String")

the code generation fails

Relevant log output

No response

Additional Context?

No response

Version

13.X.X

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 reproducing the failure with the provided SDL in the Strawberry Shake schema code-generation path, then trace how the built-in scalar name Name is recognized. Done means the schema extension is accepted and code generation succeeds for references to the Name scalar.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, graphql
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.