What problem does it solve?
Setting correct access control in PocketBase requires mastering five rule types, a custom filter expression syntax, and request macros, and misconfigured rules cause confusing 403/404 errors or accidental data exposure.
Core Features & Use Cases
- Rule Type Reference: Explains all 5 collection rules (List, View, Create, Update, Delete) including the critical difference between locked (superuser-only) and empty-string (public) values.
- Filter Expression Syntax: Covers all operators including the
?= family for multi-valued fields, logical operators, datetime macros, and geoDistance queries.
- Request & Collection Macros: Documents
@request.auth.*, @request.body.*, and cross-collection @collection.* lookups, plus field modifiers like :isset, :changed, and :length.
- Use Case: When building a team-based app, use the documented membership pattern
@collection.memberships.user ?= @request.auth.id to restrict record access to team members only.
Quick Start
Ask the AI to write PocketBase API rules so that only a record's author can update or delete it while everyone can read it.