single
single()
Section titled “single()”Category: Collection
Returns the single item in a collection, or error if the collection is empty or has more than one item
Signature
Section titled “Signature”- Return type:
any
Examples
Section titled “Examples”Patient.id.single()Patient.active.single()