Get first matching record
get_first_recordFetch the first record that matches a PocketBase filter expression. Use for direct lookups such as finding a user by email, with an error if no record exists.
Instructions
Return the first record matching a filter expression (throws if none found). Convenient for lookups like 'email = "a@b.com"'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | Comma-separated relations to expand. | |
| fields | No | Comma-separated fields to return. | |
| filter | Yes | PocketBase filter expression to match. | |
| collection | Yes | Collection id or name. |