Hopefully I'm in the right place - does anyone kno...
# prisma-whats-new
a
Hopefully I'm in the right place - does anyone know how to enforce that a field is unique per-relation? E.g. a Post slug must be unique per User, but not between users.
a
Not possible in your schema definition. You have to write a before hook function for Post that checks this
a
ok thanks for that!