openfga / openfga.dev

OpenFGA website and documentation
http://openfga.dev/
Apache License 2.0
34 stars 60 forks source link

Value for tuples in transactional writes is incorrect #815

Open rhamzeh opened 1 month ago

rhamzeh commented 1 month ago

We mention the limit to be 10 here: https://github.com/openfga/openfga.dev/blob/main/docs/content/interacting/transactional-writes.mdx?plain=1#L141

In fact, by default it is 100

https://github.com/openfga/openfga/blob/main/internal/server/config/config.go#L19

Please mention that it can be configured and link to the config schema: https://github.com/openfga/openfga/blob/main/.config-schema.json#L3-L7

VividhPandey003 commented 1 day ago

Hi @rhamzeh Can I work on this under Hacktoberfest.

From what I understood from the issue description is that since the limit for the max tuples per write can be configured from the schema, the line 139 'The Write API allows you to send up to 100 unique tuples in the request. ' wrongly defines the limit to be 100.

We would need to edit that to properly communicate that the default value is 100 but it can be configured as per the dev's requirements