Skip to content

Commit 7b14f54

Browse files
authored
Added required keyed services breaking change to migration guide (#7603)
1 parent d942259 commit 7b14f54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ Renamed interface methods:
191191
| TryReadQueryAsync | TryReadAsync |
192192
| WriteQueryAsync | SaveAsync |
193193

194+
## Required keyed services
195+
196+
Accessing a keyed service that has not been registered will now throw, instead of returning `null`. The return type is now non-nullable.
197+
198+
This change aligns the API with the regular (non-keyed) service access API.
199+
194200
# Deprecations
195201

196202
Things that will continue to function this release, but we encourage you to move away from.

0 commit comments

Comments
 (0)