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:
- Model decorator REFERENCE
- Model field decorator REFERENCE
- Model relation decorator REFERENCE
- Model property decorator REFERENCE
- Handler decorator REFERENCE
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: