Closed tomgrowflow closed 10 months ago
Hi,
"EXEC : error GQL: An item with the same key has already been added. Key: JSON..."
Having the same issue described here. Has anyone found a workaround? I don't control the server portion and there are over 200 JSON scalars in their Schema so removing is not an option for me.
I am also having the same issue. It seems that I can run the demo alright, but then the issue occurs when I use my schema. I will try reverting to v12 and seeing if that helps.
Im getting same error and are not able ommit json scalar. Im using strapi as backend and therefore cannot remove the type. Unfortunatly using v12 wasnt working for me either.
Any news regarding this problem?
FYI, integrating with the Shopify GraphQL API is impossible due to this bug
First time using this package and I thought this was just me the entire time.
Also having this exact same issue. Was able to Generate the demo with no issues but see this when I go to build:
1>EXEC : error GQL: An item with the same key has already been added. Key: JSON
Hopefully there is a fix soon, kinda stuck :(
@rlincoln24 - if you roll back to the previous major version (12), it may work (it did in my case, at least). I'm ignorant in the nuances of any specific differences, though. Your experience might be different, but I got it working. The hardest part was ensuring I'd switched all the packages to 12, which caught me initially.
+1 case, same issue when graphql schema contains a JSON scalar type.
Same issue, tried to migrate from Strawberry Shake v12 to v13 which results in this error.
I'd really like to use this as well but can't seem to get it going like the above :-(
Same here, still don't work on 13.2.0/.NET 7.
Hi, I think I found the root cause of this issue. I'm creating a PR soon
@clazarev when this fix will be available?
I still have this issue on StrawberryShake.Server 13.5.1
Just commenting here that I'm also affected by this bug. Using strapi back-end.
Closing, as I'm unable to reproduce this error using Strawberry Shake 13.8.1.
Is there an existing issue for this?
Product
Strawberry Shake
Describe the bug
Generating client when schema has JSON scalar causes error
After upgrading to version 13.0.4, I'm getting the following error..
Error GQL: An item with the same key has already been added. Key: JSON
31>_GenerateGraphQLCode: dotnet "C:\WINDOWS\ServiceProfiles\NetworkService.nuget\packages\strawberryshake.server\13.0.4\build..\tools\net6\dotnet-graphql.dll" generate "D:\agents\agent02_dev_pr_work\2\s\GrowFlow.ArcClient" -o "D:\agents_work\2\s\ArcClient\obj\Release\netstandard2.0\berry" -n GrowFlow.ArcClient -a md5 -t Generate C# Clients started. Generate ArcClient started. Generate ArcClient completed in 332 ms
I do have a JSON scalar type in my schema defined..
"The
JSON
scalar type represents JSON values as specified by ECMA-404." scalar JSONRemoving the JSON scalar type from the schema fixes the build issue (edited)
Steps to reproduce
schema { query: Query mutation: Mutation }
type ApiRequest{ nodeId: ID! id: Int! body: JSON }
"The
JSON
scalar type represents JSON values as specified by ECMA-404." scalar JSONRelevant log output
Additional Context?
No response
Version
13.0.4