You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In models like the one below, it might not be obvious what's the type of each relation:
model
schema 1.1
type user
type employee
type organization
relations
define admin : [user]
define support: [employee]
type document
relations
define organization : [organization]
define viewer : admin from organization or support from organization # user, employee
define editor : admin from organization # user
For example, the 'viewer' relation can refer to a user or an employee, but the editor one, just to a user.
If the model got bigger, with more types/relations, it would be useful to have the VS Code Editor to provide typing information when hovering over the relation names. E.g. if I hover over 'viewer' it would say "user, employee".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In models like the one below, it might not be obvious what's the type of each relation:
For example, the 'viewer' relation can refer to a user or an employee, but the editor one, just to a user.
If the model got bigger, with more types/relations, it would be useful to have the VS Code Editor to provide typing information when hovering over the relation names. E.g. if I hover over 'viewer' it would say "user, employee".
Beta Was this translation helpful? Give feedback.
All reactions