Skip to content

Commit

Permalink
Add "Nodes batch size" section to migrate-from-12-to-13.md (#5896)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Tengler <45513122+tobias-tengler@users.noreply.github.com>
  • Loading branch information
nightroman and tobias-tengler authored Mar 2, 2023
1 parent f4cd5a0 commit 7acae5a
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ app.MapGraphQL().WithOptions(new GraphQLServerOptions
});
```

## Nodes batch size

The number of nodes that can be requested through the `nodes` field is limited to 10 by default.
See [Nodes batch size](/docs/hotchocolate/v13/security#nodes-batch-size) for the details.

You can change this default to suite the needs of your application as shown below:

```csharp
builder.Services.AddGraphQLServer()
.ModifyOptions(o => o.MaxAllowedNodeBatchSize = 1);
```

## UseOffsetPaging

In this release we aligned the naming of types generated by `UseOffsetPaging` with the behavior of `UsePaging`.
Expand Down

0 comments on commit 7acae5a

Please sign in to comment.