ChilliCream / ChilliCream/graphql-platform
`Name` cannot be used in StrawBerry Shake schemas
Open
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
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 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