Skip to content

Commit 952518a

Browse files
authored
Docs: Add parameter name to AddJsonApi calls (#1296)
1 parent 4183f62 commit 952518a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/resource-graph.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can enable auto-discovery for the current assembly by adding the following a
2828

2929
```c#
3030
// Program.cs
31-
builder.Services.AddJsonApi(discovery => discovery.AddCurrentAssembly());
31+
builder.Services.AddJsonApi(discovery: discovery => discovery.AddCurrentAssembly());
3232
```
3333

3434
### Specifying an Entity Framework Core DbContext
@@ -44,7 +44,7 @@ Be aware that this does not register resource definitions, resource services and
4444

4545
```c#
4646
// Program.cs
47-
builder.Services.AddJsonApi<AppDbContext>(discovery => discovery.AddCurrentAssembly());
47+
builder.Services.AddJsonApi<AppDbContext>(discovery: discovery => discovery.AddCurrentAssembly());
4848
```
4949

5050
### Manual Specification

0 commit comments

Comments
 (0)