Circular Dependency Issue: Full-Stack ChiliCream with Blazor WebAssembly #8458
Unanswered
stevefan1999-personal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to build a full-stack application using ChiliCream's Hot Chocolate GraphQL server with a Blazor WebAssembly frontend that consumes the GraphQL API via StrawberryShake. However, I've encountered a fundamental architectural challenge that creates a circular dependency during the build process.
The Problem
The issue manifests as a classic catch-22 scenario:
Client Dependency: The Blazor WebAssembly client needs to use StrawberryShake to generate strongly-typed GraphQL clients. This requires:
/graphql
endpoint)Server Dependency: In a typical Blazor WebAssembly hosted setup:
This creates an impossible build order where:
Current Architecture
Impact
This circular dependency prevents:
dotnet build
from working on the solution levelQuestion
Is there a recommended pattern or best practice for structuring a full-stack ChiliCream solution with Blazor WebAssembly that avoids this circular dependency? I'm looking for approaches that maintain the benefits of:
Any guidance on architectural patterns, build configurations, or tooling that can help resolve this issue would be greatly appreciated. Perhaps there's a way to:
Thank you for any insights or recommendations!
Beta Was this translation helpful? Give feedback.
All reactions