Is there is a way to make a field (e.g title) in a...
# prisma-whats-new
v
Is there is a way to make a field (e.g title) in a model unique but only in case of the same parent model? user -> documents -> document { id, title: string @isUnique } So one user could have document with unique title.
a
This is not possible using @isUnique attributes, but it could be possible to model a permission query to achieve the same.
like SomeUserExists -> documents_none -> title = $node_title
v
Thanks
Is there is a tutorial how to make it in graphcool framework?