@ @visible
@visible
Applies to: table, field, rpc
Section: §13
Syntax
Attr = "@" Path [ "(" [ AttrArgs ] ")" ] ;Grammar: App. A
Defined in
- §13. Security — Security
- 13.4 Authorisation and policies — The subject of a policy
- 4.9 Attributes — Syntax: @name or @name(arguments) before a declaration, field, parameter or rpc.
Examples
@table("orders") @owner(.userId, bypass: [.Support, .Admin])
data Order { … }
data Employee {
name: str
@visible(role: .HR) salary: Money?
}— 13.4 Authorisation and policies
Related diagnostics
data-rights, missing-policy, unknown-policy-target, deprecated