OpenFGA's Conditional Relationship Tuples are defined using Google's CEL expressions.
This example showcases the different data types and expressions that are supported in OpenFGA conditions and how to use them.
The model, tuples and unit tests are detailed in store.fga.yaml.
-
Make sure you have the FGA CLI
-
In the
condition-data-types
directory, runfga model test --tests store.fga.yaml