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
agartha
11/13/2017, 3:58 PM
This is not possible using @isUnique attributes, but it could be possible to model a permission query to achieve the same.
agartha
11/13/2017, 3:59 PM
like SomeUserExists -> documents_none -> title = $node_title
v
viktor_soroka
11/13/2017, 4:01 PM
Thanks
viktor_soroka
11/14/2017, 1:45 PM
Is there is a tutorial how to make it in graphcool framework?