What problem does it solve?
It solves the problem of implementing consistent, error-resistant data access patterns for Wix CMS collections so your list and detail pages stay predictable while you create, read, update, delete, and manage references.
Core Features & Use Cases
- BaseCrudService CRUD Patterns: Create, paginate-read, read-by-id (with optional singleRef/multiRef), update, and delete using collection-id first and item-id second.
- Reference Management: Add and remove multi-references to link related entities (e.g., tags, categories, related items).
- Production Page Patterns: Implement list pages with pagination/infinite scroll requirements, and detail pages with loading, not-found handling, and reference fetching.
- Optimistic UI Updates: Update UI state immediately for create/update/delete/reference mutations, then sync or reload on failure.
Quick Start
Use the data-operations skill to implement a paginated “items” list by calling BaseCrudService.getAll with limit and skip, rendering result.items, and wiring load-more behavior to result.hasNext and result.nextSkip.