Skip to content

Commit ee8a4f8

Browse files
committed
Updated the workshop to .NET 8 and Hot Chocolate 14
1 parent 62f9350 commit ee8a4f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+564
-825
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# https://editorconfig.org/
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.cs]
14+
indent_size = 4

.gitignore

Lines changed: 3 additions & 309 deletions
Original file line numberDiff line numberDiff line change
@@ -1,310 +1,4 @@
1-
## Ignore Visual Studio temporary files, build results, and
2-
## files generated by popular Visual Studio add-ons.
3-
##
4-
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5-
6-
# User-specific files
7-
*.suo
8-
*.user
9-
*.userosscache
10-
*.sln.docstates
11-
12-
# User-specific files (MonoDevelop/Xamarin Studio)
13-
*.userprefs
14-
15-
# Ignore website as we do not have it in 11
16-
website/
17-
18-
# Build results
19-
[Dd]ebug/
20-
[Dd]ebugPublic/
21-
[Rr]elease/
22-
[Rr]eleases/
23-
x64/
24-
x86/
25-
bld/
26-
[Bb]in/
27-
[Oo]bj/
28-
[Ll]og/
29-
30-
# Visual Studio 2015 cache/options directory
31-
.vs/
32-
# Uncomment if you have tasks that create the project's static files in wwwroot
33-
#wwwroot/
34-
35-
# MSTest test Results
36-
[Tt]est[Rr]esult*/
37-
[Bb]uild[Ll]og.*
38-
39-
# NUNIT
40-
*.VisualState.xml
41-
TestResult.xml
42-
43-
# Build Results of an ATL Project
44-
[Dd]ebugPS/
45-
[Rr]eleasePS/
46-
dlldata.c
47-
48-
# .NET Core
49-
project.lock.json
50-
project.fragment.lock.json
51-
artifacts/
52-
**/Properties/launchSettings.json
53-
54-
*_i.c
55-
*_p.c
56-
*_i.h
57-
*.ilk
58-
*.meta
59-
*.obj
60-
*.pch
61-
*.pdb
62-
*.pgc
63-
*.pgd
64-
*.rsp
65-
*.sbr
66-
*.tlb
67-
*.tli
68-
*.tlh
69-
*.tmp
70-
*.tmp_proj
71-
*.log
72-
*.vspscc
73-
*.vssscc
74-
.builds
75-
*.pidb
76-
*.svclog
77-
*.scc
78-
79-
# Chutzpah Test files
80-
_Chutzpah*
81-
82-
# Visual C++ cache files
83-
ipch/
84-
*.aps
85-
*.ncb
86-
*.opendb
87-
*.opensdf
88-
*.sdf
89-
*.cachefile
90-
*.VC.db
91-
*.VC.VC.opendb
92-
93-
# Visual Studio profiler
94-
*.psess
95-
*.vsp
96-
*.vspx
97-
*.sap
98-
99-
# TFS 2012 Local Workspace
100-
$tf/
101-
102-
# Guidance Automation Toolkit
103-
*.gpState
104-
105-
# ReSharper is a .NET coding add-in
106-
_ReSharper*/
107-
*.[Rr]e[Ss]harper
108-
*.DotSettings.user
109-
110-
# JustCode is a .NET coding add-in
111-
.JustCode
112-
113-
# TeamCity is a build add-in
114-
_TeamCity*
115-
116-
# DotCover is a Code Coverage Tool
117-
*.dotCover
118-
119-
# Visual Studio code coverage results
120-
*.coverage
121-
*.coveragexml
122-
123-
# NCrunch
124-
_NCrunch_*
125-
.*crunch*.local.xml
126-
nCrunchTemp_*
127-
128-
# MightyMoose
129-
*.mm.*
130-
AutoTest.Net/
131-
132-
# Web workbench (sass)
133-
.sass-cache/
134-
135-
# Installshield output folder
136-
[Ee]xpress/
137-
138-
# DocProject is a documentation generator add-in
139-
DocProject/buildhelp/
140-
DocProject/Help/*.HxT
141-
DocProject/Help/*.HxC
142-
DocProject/Help/*.hhc
143-
DocProject/Help/*.hhk
144-
DocProject/Help/*.hhp
145-
DocProject/Help/Html2
146-
DocProject/Help/html
147-
148-
# Click-Once directory
149-
publish/
150-
151-
# Publish Web Output
152-
*.[Pp]ublish.xml
153-
*.azurePubxml
154-
# TODO: Comment the next line if you want to checkin your web deploy settings
155-
# but database connection strings (with potential passwords) will be unencrypted
156-
*.pubxml
157-
*.publishproj
158-
159-
# Microsoft Azure Web App publish settings. Comment the next line if you want to
160-
# checkin your Azure Web App publish settings, but sensitive information contained
161-
# in these scripts will be unencrypted
162-
PublishScripts/
163-
164-
# NuGet Packages
165-
*.nupkg
166-
# The packages folder can be ignored because of Package Restore
167-
**/packages/*
168-
# except build/, which is used as an MSBuild target.
169-
!**/packages/build/
170-
# Uncomment if necessary however generally it will be regenerated when needed
171-
#!**/packages/repositories.config
172-
# NuGet v3's project.json files produces more ignorable files
173-
*.nuget.props
174-
*.nuget.targets
175-
176-
# Microsoft Azure Build Output
177-
csx/
178-
*.build.csdef
179-
180-
# Microsoft Azure Emulator
181-
ecf/
182-
rcf/
183-
184-
# Windows Store app package directories and files
185-
AppPackages/
186-
BundleArtifacts/
187-
Package.StoreAssociation.xml
188-
_pkginfo.txt
189-
190-
# Visual Studio cache files
191-
# files ending in .cache can be ignored
192-
*.[Cc]ache
193-
# but keep track of directories ending in .cache
194-
!*.[Cc]ache/
195-
196-
# Others
197-
ClientBin/
198-
~$*
199-
*~
200-
*.dbmdl
201-
*.dbproj.schemaview
202-
*.jfm
203-
*.pfx
204-
*.publishsettings
205-
orleans.codegen.cs
206-
207-
# Since there are multiple workflows, uncomment next line to ignore bower_components
208-
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
209-
#bower_components/
210-
211-
# RIA/Silverlight projects
212-
Generated_Code/
213-
214-
# Backup & report files from converting an old project file
215-
# to a newer Visual Studio version. Backup files are not needed,
216-
# because we have git ;-)
217-
_UpgradeReport_Files/
218-
Backup*/
219-
UpgradeLog*.XML
220-
UpgradeLog*.htm
221-
222-
# SQL Server files
223-
*.mdf
224-
*.ldf
225-
*.ndf
226-
227-
# Business Intelligence projects
228-
*.rdl.data
229-
*.bim.layout
230-
*.bim_*.settings
231-
232-
# Microsoft Fakes
233-
FakesAssemblies/
234-
235-
# GhostDoc plugin setting file
236-
*.GhostDoc.xml
237-
238-
# Node.js Tools for Visual Studio
239-
.ntvs_analysis.dat
240-
node_modules/
241-
242-
# Typescript v1 declaration files
243-
typings/
244-
245-
# Visual Studio 6 build log
246-
*.plg
247-
248-
# Visual Studio 6 workspace options file
249-
*.opt
250-
251-
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
252-
*.vbw
253-
254-
# Visual Studio LightSwitch build output
255-
**/*.HTMLClient/GeneratedArtifacts
256-
**/*.DesktopClient/GeneratedArtifacts
257-
**/*.DesktopClient/ModelManifest.xml
258-
**/*.Server/GeneratedArtifacts
259-
**/*.Server/ModelManifest.xml
260-
_Pvt_Extensions
261-
262-
# Paket dependency manager
263-
.paket/paket.exe
264-
paket-files/
265-
266-
# FAKE - F# Make
267-
.fake/
268-
269-
# JetBrains Rider
2701
.idea/
271-
*.sln.iml
272-
273-
# CodeRush
274-
.cr/
275-
276-
# Python Tools for Visual Studio (PTVS)
277-
__pycache__/
278-
*.pyc
279-
280-
# Cake - Uncomment if you are using it
281-
# tools/**
282-
# !tools/packages.config
283-
284-
# Telerik's JustMock configuration file
285-
*.jmconfig
286-
287-
# BizTalk build output
288-
*.btp.cs
289-
*.btm.cs
290-
*.odx.cs
291-
*.xsd.cs
292-
293-
lcov.info
294-
coverage.json
295-
.DS_Store
296-
297-
BenchmarkDotNet.Artifacts
298-
.sonarqube/
299-
.testresults
300-
301-
# Build related
302-
tools/**
303-
!tools/packages.config
304-
!tools/Build.sln
305-
!tools/Build.Core.sln
306-
307-
testoutput/
308-
artifacts/
309-
__mismatch__
310-
conferences.db
2+
*.DotSettings.user
3+
bin/
4+
obj/

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"davidanson.vscode-markdownlint",
4+
"EditorConfig.EditorConfig",
5+
"streetsidesoftware.code-spell-checker"
6+
]
7+
}

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@ If you want to browse the GraphQL server head over [here](http://workshop.chilli
44

55
## Prerequisites
66

7-
For this workshop we need a couple of prerequisites. First, we need the [.NET SDK 5.0](https://dotnet.microsoft.com/download/dotnet/5.0).
7+
For this workshop we need a couple of prerequisites. First, we need the [.NET SDK 8.0](https://dotnet.microsoft.com/download/dotnet/8.0).
88

9-
Then we need some IDE/Editor in order to do some proper C# coding, you can use [VSCode](https://code.visualstudio.com/) or if you have already on your system Visual Studio or JetBrains Rider.
9+
Then we need an IDE/editor in order to do some proper C# coding, you can use [VSCode](https://code.visualstudio.com/) or if you already have it on your system, Visual Studio or JetBrains Rider.
1010

11-
Last but not least we will use our GraphQL IDE [Banana Cake Pop](https://chillicream.com/docs/bananacakepop).
11+
Last but not least we will use our GraphQL IDE [Banana Cake Pop](https://chillicream.com/products/bananacakepop).
1212

1313
> Note: When installing Visual Studio you only need to install the `ASP.NET and web development` workload.
1414
1515
## What you'll be building
1616

17-
In this workshop, you'll learn by building a full-featured GraphQL Server with ASP.NET Core and Hot Chocolate from scratch. We'll start from File/New and build up a full-featured GraphQL server with custom middleware, filters, subscription and relay support.
17+
In this workshop, you'll learn by building a full-featured GraphQL Server with ASP.NET Core and Hot Chocolate from scratch. We'll start from File/New and build up a full-featured GraphQL server with custom middleware, filters, subscriptions, and Relay support.
1818

1919
**Database Schema**:
2020

21-
![Database Schema Diagram](docs/images/21-conference-planner-db-diagram.png)
21+
![Database Schema Diagram](docs/images/21-conference-planner-db-diagram.webp)
2222

2323
**GraphQL Schema**:
2424

2525
The GraphQL schema can be found [here](code/complete/schema.graphql).
2626

2727
## Sessions
2828

29-
| Session | Topics |
30-
| ----- | ---- |
31-
| [Session #1](docs/1-creating-a-graphql-server-project.md) | Building a basic GraphQL server API. |
32-
| [Session #2](docs/2-controlling-nullability.md) | Controlling nullability. |
33-
| [Session #3](docs/3-understanding-dataLoader.md) | Understanding GraphQL query execution and DataLoader. |
34-
| [Session #4](docs/4-schema-design.md) | GraphQL schema design approaches. |
35-
| [Session #5](docs/5-understanding-middleware.md) | Understanding middleware. |
36-
| [Session #6](docs/6-adding-complex-filter-capabilities.md) | Adding complex filter capabilities. |
37-
| [Session #7](docs/7-subscriptions.md) | Adding real-time functionality with subscriptions. |
38-
| [Session #8](docs/8-testing-the-graphql-server.md) | Testing the GraphQL server. |
29+
| Session | Topics |
30+
|------------------------------------------------------------|-------------------------------------------------------|
31+
| [Session #1](docs/1-creating-a-graphql-server-project.md) | Creating a new GraphQL server project. |
32+
| [Session #2](docs/2-controlling-nullability.md) | Controlling nullability. |
33+
| [Session #3](docs/3-understanding-dataLoader.md) | Understanding GraphQL query execution and DataLoader. |
34+
| [Session #4](docs/4-schema-design.md) | GraphQL schema design approaches. |
35+
| [Session #5](docs/5-understanding-middleware.md) | Understanding middleware. |
36+
| [Session #6](docs/6-adding-complex-filter-capabilities.md) | Adding complex filter capabilities. |
37+
| [Session #7](docs/7-subscriptions.md) | Adding real-time functionality with subscriptions. |
38+
| [Session #8](docs/8-testing-the-graphql-server.md) | Testing the GraphQL server. |

code/global.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.200"
3+
"version": "8.0.300",
4+
"rollForward": "latestFeature"
45
}
56
}

0 commit comments

Comments
 (0)