Skip to content

single

Category: Collection

Returns the single item in a collection, or error if the collection is empty or has more than one item

  • Return type: any
Patient.id.single()
Patient.active.single()