findUniqRecord
Retrieve the single record matching a unique-key query and fail if none or multiple match. Use for email, code, or slug lookups where exactly one result is expected.
Instructions
Return the single record that uniquely matches the query — throws if zero or more than one record matches. Use for unique-key lookups (email, code, slug) where exactly one result is expected. Use findOneRecord instead when you only want the first match and duplicates are acceptable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | No | Search conditions for finding the unique record | |
| labels | No | Filter by record labels |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes |