ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
5.26k stars 746 forks source link

Strawberry Shake generates random ">" character in function name leading to invalid generated code. #7766

Open jimitndiaye opened 4 hours ago

jimitndiaye commented 4 hours ago

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