Skip to content

Add the ChilliCream TV Hot Chocolate examples - #1

Merged
PascalSenn merged 8 commits into
mainfrom
add-chillicream-tv-examples
Oct 20, 2026
Merged

PascalSenn merged 8 commits into
mainfrom
add-chillicream-tv-examples

Conversation

@PascalSenn

Copy link
Copy Markdown
Member

Description

Adds the source code of seven ChilliCream TV episodes under examples/HotChocolate/, so the code shown in the videos is available in this repository instead of behind the TV download.

Example Episode
DataLoaderExplained DataLoader Explained: What, Why & Where It Belongs!
GreenDonutData The Future of Data APIs: GreenDonut in Action!
LayeredDataLoader Master DataLoader in Layered Architecture!
RelativeCursors Offset Pagination is Dead! Meet Relative Cursors
ConnectionAggregations Make Your GraphQL Connections Smarter! Add Aggregations
EfCoreProjections Boost GraphQL Performance with EF Core Projections
StatefulDataLoader How to Use State in DataLoader for Context-Aware Fetching

Each example has a README with the episode links, the Hot Chocolate version, and the commands to run it.

Versioning

The code is unchanged from the videos, including the Hot Chocolate version (a different 15.1.x version per episode, see each Directory.Packages.props) and the net9.0 target framework. Each example has its own Directory.Build.props and Directory.Packages.props that import the repository ones, the same way examples/Architecture/Bookshop does, and pins its own versions. The only changes to the original code are build plumbing: package versions moved from PackageReference into Directory.Packages.props, and the per-example global.json removed in favor of the root one. Every project has a committed packages.lock.json. Source generator output (.generated/) is not committed.

Solution and README

examples/HotChocolate/HotChocolate.Examples.slnx lists all projects, one folder per example. The root README now mentions Hot Chocolate and lists the new examples in the layout section.

How to build

dotnet build examples/HotChocolate/HotChocolate.Examples.slnx

To run an example, start PostgreSQL with docker compose up -d in the example folder and follow its README.

Related

The website videos section links to these folders: ChilliCream/graphql-platform#10645.

@PascalSenn
PascalSenn merged commit 2c48a53 into main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant