ChilliCream / ChilliCream/graphql-platform
Strawberry Shake generates random ">" character in function name leading to invalid generated code.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.8k
- Forks
- 810
- Avg merge
- 15h 39m
- Merged PRs (30d)
- 98
Description
Product
Strawberry Shake
Version
13.9.14 and 14
Link to minimal reproduction
https://github.com/jimitndiaye/StrawberryShake.Testing
Steps to reproduce
The repo linked above has a simple blazor project straight from file->new with the only addition being StrawberryShake and setting up the schema and queries. Attempting to build the project will fail. Commenting out the queries in the NotWorking.graphql file will allow the project to build successfully.
As described in the readme of that project, it seems to be generating an unexpected ">" character when fields of a specified type are used as output (works fine on input).
What is expected?
The linked project should build successfully and the correct code should be generated.
What is actually happening?
Incorrect code is generated by StrawberryShake involving an extra ">" character.
Relevant log output
Additional context
No response
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 with the linked StrawberryShake.Testing minimal reproduction and build the Blazor project, focusing on the queries in NotWorking.graphql that use fields of the specified type as output. Inspect the generated code for the unexpected ">" character; done means the project builds successfully and the generated code is valid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100