ChilliCream / ChilliCream/graphql-platform

Schema contains type already defined in strawberry shake

Open
#5,361 13 comments 0 reactions 1 assignee View on GitHub

@michaelstaib is already working on this.

Since Aug 31, 2022.

🌶️ strawberry shake repro-validated
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
Describe the bug

im currently using strawberry shake to generate a http client to communicate with a graphQL api.
in the schema a type 'Uri' is defined with the following :

type Uri
{ 
	path: String!
}

however, compiling my project with this in my schema.graphql i get CSC : error SS0006: The name `Uri` was already registered by another type.. I assume it is confusing it with System.Uri?

i have no control over the api's schema so im stuck with this and fixing it on my client's side.

Steps to reproduce
  1. git clone git@github.com:DacoTaco/TicketSwapPoller.git
  2. Uncomment the following in TicketSwapPoller/schema.graphql:
    #type Uri
    #{
    #	path: String
    #}
    
  3. dotnet build
Relevant log output

No response

Additional Context?

No response

Product

Strawberry Shake

Version

13.8.1

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.