Skip to content

Commit

Permalink
Remove DataLoader section
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-tengler committed Nov 17, 2024
1 parent dd6fbe8 commit f087d54
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,6 @@ builder.Services
.ModifyOptions(o => o.EnsureAllNodesCanBeResolved = false)
```

## IDataLoader<TKey, TValue> arguments now need to be marked as service

Previously, you could inject `IDataLoader<TKey, TValue>` without any attribute. Now you need to mark it as a service.

```csharp
public string GetMyType([Service] IDataLoader<int, MyType?> dataLoader)
```

## DataLoader.LoadAsync always returns nullable type

Previously, the `LoadAsync` method on a DataLoader was typed as non-nullable, even though `null` could be returned.
Expand Down

0 comments on commit f087d54

Please sign in to comment.