Welcome to the starter code for Federation with .NET (C#) & Hot Chocolate. You can find the course lessons and instructions on Odyssey, Apollo's learning platform.
The course will walk you step by step on what to do. This codebase is the starting point of your journey!
This project uses .NET CLI and requires .NET 7.0+ runtime. In order to build the project locally, run:
dotnet build
To start the server, from the root directory, run:
dotnet watch
Right now, the project is a GraphQL server returning playlist and track data at http://localhost:5059/graphql
. You can use Apollo Sandbox to connect to the endpoint and send queries.
Try running this query:
query GetFeaturedPlaylists {
featuredPlaylists {
id
name
description
tracks {
id
name
explicit
uri
}
}
}
The final
branch of this repo contains the final stage of the course, with all of the steps and code completed! If you get stuck, you can refer to it and compare your code.
This repo is not regularly monitored.
For any issues or problems concerning the course content, please refer to the Odyssey topic in our community forums. You can also join the Apollo Discord.