openfga / community

The Community repository is the place to go for OpenFGA support
https://openfga.dev
Apache License 2.0
27 stars 32 forks source link

Allow deleting/writing the same tuple key in the same Write call #281

Closed aaguiarz closed 7 months ago

aaguiarz commented 7 months ago

Checklist

Describe the problem you'd like to have solved

If we want to change the context values of a tuple, I need to delete/write the tuple in the same write() call.

However, OpenFGA tries to write it first, and it returns an error as it's duplicated.

Describe the ideal solution

We should first process deletes and then writes.

Alternatives and current workarounds

Make 2 write calls in different transactions.

Additional context

No response