Decorator

Decorator is the thing begins with an at sign. It modifies the definition or behavior of the decorated item.

model User {
    @id
    id: Int
}

Available decorators are:

Decorator declaration

To declare a new decorator in the schema, use the declare syntax:

declare model decorator markSpecial(altName: String?)

Decorator implementation

Decorator requires server implementation. See: