Hi Need help in clarifying somethin. ` definition...
# spicedb
h
Hi Need help in clarifying somethin.
Copy code
definition user {
    relation department : department
}
definition department{

}
definition item {
  relation department: department 
}
There is an item from a department example - Drill Machine item from Electrical Department Need to check if the user is also from the same department. is there a way to check and compare user and the item? Note - The department is just one attribute, there could be more attributes on which this comparison would be done in future.