Files
ent/examples/m2mrecur
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
..
2019-12-09 09:05:05 +02:00

Following-Followers M2M Relation

In this following-followers example, we have a M2M relation between users to its followers. Each user can follow many users, and can have many followers.

Generate Assets

go generate ./...

Run Example

go test