Files
ent/examples/privacyadmin
Ariel Mashraki 1029a2d3ba entc/gen: attach tx hooks to underlying driver (#2980)
Allow attaching hooks to new instances of ent.Tx.
For example, ent.Mutation.Tx().OnCommit.
2022-10-01 09:26:02 +03:00
..

Privacy Admin Only Example

An example for an application that allows any user to read any data, but accepts mutations only from viewers with admin role.

Generate Assets

go generate ./...

Run Example

go test