© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
stevie

❔ How to organize folder structure in .NET with HotChocolate 13

Can someone please guide me on organizing folder structure in HotChocolate 13 GraphQL here.
We have entities and DbContext. Can I use them instead of creating Types? Also, I've seen many cases where people create folders for each command e.g. /Queries/AddProduct/AddProduct.cs, AddProductInput.cs, AddProductPayload.cs
And also seen people creating /Queries/ProductQueries.cs and store all commands init.
And store AddProductInput.cs and AddProductPayload.cs in /Models folder.

How do I follow Relay pattern and organize with scalability in mind?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Folder Structure
C#CC# / help
17mo ago
Using MongoDB EFCore with HotChocolate
C#CC# / help
9mo ago
How to create a structure like Discord.NET
C#CC# / help
2y ago
How to organize my code ?
C#CC# / help
2y ago