This repository demonstrates how to use GraphQL in an ASP.NET Core server with a .NET client (in this example, Blazor WASM). It uses HotChocolate and StrawberryShake.
I built this example for the Tulsa .NET User Group.
It includes examples of queries, type extensions, resolvers, mutations, and subscriptions.
💡 TIP The project is only partially implemented. You can expand it as a learning exercise by adding these missing features: delete capabilities, "add telescope", target maintenance, and adding new observations.
- Clone the repo:
git clone https://github.com/JeremyLikness/StarRepo
- Compile and run
The app is built to automatically create and seed the data.
⚠️ WARNING The app "as is" uses a Windows-specific API to generate thumbnails. You can see a compiler supression comment that wraps use ofSystem.Common.Drawing
that is not supported on other platforms. You can remove the code and reference to compile and run on other platforms.
Thanks,