Skip to content

Services & operations

Services group operations callable from components.

Example

cmn
service CustomerService {
    operation find(id: Id): Customer
    operation search(name: String?): Customer[]
}

Operation structure

  • parameters
  • return type
  • optional error types
  • annotations (platform-specific)