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
- feat: The SDK supports OpenFGA v1.10.0+ conflict options:
4
+
- feat: add support for conflict options for Write operations: (#235)
5
+
The client now supports setting `ConflictOptions` on `ClientWriteOptions` to control behavior when writing duplicate tuples or deleting non-existent tuples. This feature requires OpenFGA server [v1.10.0](https://github.com/openfga/openfga/releases/tag/v1.10.0) or later.
6
+
See [Conflict Options for Write Operations](./README.md#conflict-options-for-write-operations) for more.
5
7
-`on_duplicate` for handling duplicate tuple writes (ERROR or IGNORE)
6
8
-`on_missing` for handling deletes of non-existent tuples (ERROR or IGNORE)
7
9
- docs: added documentation for write conflict options in README
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -748,9 +748,9 @@ body = ClientWriteRequest(
748
748
response =await fga_client.write(body, options)
749
749
```
750
750
751
-
###### Conflict Options
751
+
###### Conflict Options for Write Operations
752
752
753
-
OpenFGA v1.10.0 introduced support for write conflict options to handle duplicate writes and missing deletes gracefully. These options help avoid unnecessary error handling logic in client code.
753
+
With OpenFGA [v1.10.0](https://github.com/openfga/openfga/releases/tag/v1.10.0) and later, support for write conflict options to handle duplicate writes and missing deletes gracefully has been added.
754
754
755
755
**Available Options:**
756
756
@@ -778,7 +778,8 @@ OpenFGA v1.10.0 introduced support for write conflict options to handle duplicat
0 commit comments