You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -381,8 +381,15 @@ var response = await fgaClient.Check(body, options);
381
381
382
382
##### Batch Check
383
383
384
-
Run a set of [checks](#check). Batch Check will return `allowed: false` if it encounters an error, and will return the error in the body.
385
-
If 429s or 5xxs are encountered, the underlying check will retry up to {{defaultMaxRetry}} times before giving up.
384
+
Similar to [check](#check), but instead of checking a single user-object relationship, accepts a list of relationships to check. Requires OpenFGA server version [1.8.0](https://github.com/openfga/openfga/releases/tag/v1.8.0) or greater.
385
+
386
+
This method automatically handles:
387
+
- Generating correlation IDs for checks that don't have one
388
+
- Validating that correlation IDs are unique
389
+
- Chunking requests based on `MaxBatchSize` (default: {{clientMaxBatchSize}})
390
+
- Executing batches in parallel based on `MaxParallelRequests` (default: {{clientMaxMethodParallelRequests}})
391
+
392
+
If 429s or 5xxs are encountered, the underlying requests will retry up to {{defaultMaxRetry}} times before giving up.
386
393
387
394
> **Note**: The order of `BatchCheck` results is not guaranteed to match the order of the checks provided. Use `correlationId` to pair responses with requests.
388
395
@@ -391,87 +398,139 @@ var options = new ClientBatchCheckOptions {
391
398
// You can rely on the model id set in the configuration or override it for this specific request
Run a set of [checks](#check) by making individual `/check` API calls in parallel on the client side. This is useful for small batches (< 10 checks) when you want more control over each individual request.
493
+
494
+
For larger batches or to use the server-side batch endpoint, use [`BatchCheck`](#batch-check) instead.
0 commit comments