question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StrawberryShake 13: Unable to resolve type reference "Name!"

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Product

Strawberry Shake

Describe the bug

StrawberryShake v13 fails on a HotChocolate GQL service schema with the error: Unable to resolve type reference “Name!”

Please find attached a project created with the following commands recommended here: https://chillicream.com/blog/2023/02/08/new-in-hot-chocolate-13#strawberry-shake

Source code: SSv13.zip

dotnet new tool-manifest
dotnet tool install StrawberryShake.Tools

dotnet new classlib
dotnet add package StrawberryShake.Blazor

dotnet graphql init https://api.nexar.com/graphql -n NexarClient

After adding the simple query Resources\Workspaces.graphql the build fails with this error

EXEC : error GQL: Unable to resolve type reference `Name!`.

See also:

Version

13.0.2

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Reactions:3
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
michaelstaibcommented, Feb 18, 2023

You removed the Name type and it says:

EXEC : error GQL: Unable to resolve type reference `Name!`.

The workaround I offered would be to download the schema manually and remove the Name type and directives that use it.

2reactions
michaelstaibcommented, Feb 18, 2023

The name type because of schema stitching.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strawberry Shake Code Generation cannot resolve type ...
I try to use Strawberry Shake to generate Code from Querys in my Client. ... "Unable to resolve type reference 'None:Any'.".
Read more >
Incorrectly reported errors when using Strawberry Shake library
When using the Strawberry Shake GraphQL library from ChilliCream, Rider will mark auto-generated types with red squiggly lines because it finds them in...
Read more >
Input Object Types - Hot Chocolate v12
Input object type definitions differ from object types only in the used keyword and in that their fields can not have arguments.
Read more >
Migrate Strawberry Shake from 12 to 13
This guide will walk you through the manual migration steps to update your Strawberry Shake GraphQL client to version 13.
Read more >
GRAPHQL CLIENT IN .NET w/ STRAWBERRY SHAKE #1
Learn how to setup a GraphQL client application in .NET using the Strawberry Shake package. In this video, I setup the project for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found