data-operations

Implement CRUD and reference-handling flows with BaseCrudService for Wix CMS pages.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/madmaxfarm105-hue/Comando --skill data-operations-madmaxfarm105-hue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-operations
Source: https://github.com/madmaxfarm105-hue/Comando/tree/main/.emdash/skills/data-operations
Command: npx skills add https://github.com/madmaxfarm105-hue/Comando --skill data-operations-madmaxfarm105-hue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of building reliable, data-driven Wix CMS workflows without bugs, mismatched pagination, or inconsistent CRUD behavior.

Core Features & Use Cases

  • BaseCrudService CRUD patterns: Create, read (by id and paginated), update, and delete CMS items with a consistent interface.
  • Reference-aware data loading: Fetch single and multi references for richer detail pages and linked list content.
  • Safe UI update strategy: Use optimistic updates for create/update/delete and reference changes to keep the UI responsive while remaining consistent.

Quick Start

Use BaseCrudService with the correct parameter order (collection-id first, item-id second) to implement a list page that fetches items via getAll, renders results, and supports pagination with load more while handling errors.

Frequently Asked Questions about data-operations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build paginated Wix CMS list pages with load-more functionality?

To build paginated Wix CMS list pages, use BaseCrudService to fetch items via getAll and render results supporting load-more. You must handle paginated result objects containing items, totalCount, hasNext, and nextSkip properties to manage pagination state reliably.

How does optimistic update behavior work for Wix CMS CRUD operations?

Optimistic updates for Wix CMS CRUD operations immediately reflect create, update, delete, and reference changes in the UI. If a mutation fails, the system automatically rolls back the optimistic state by re-fetching the correct data from the collection.

How do I hydrate single and multi reference fields in Wix CMS detail pages?

To hydrate single and multi reference fields in Wix CMS detail pages, fetch items by id using BaseCrudService and apply optional reference loading. This hydrates linked collection data for richer detail pages and connected list content.

What is the correct parameter order for Wix CMS CRUD operations using BaseCrudService?

The correct parameter order for Wix CMS CRUD operations using BaseCrudService requires passing the collection-id first, followed by the item-id second. Maintaining this strict ordering prevents mismatched pagination and inconsistent data behavior.

How do I add or remove references between items in a Wix CMS collection?

To add or remove references between items in a Wix CMS collection, use the addReferences and removeReferences mutation actions provided by BaseCrudService. These operations trigger optimistic UI updates with automatic rollback via re-fetch on failure.

Can I use BaseCrudService for Wix CMS routing and data-driven page generation?

Yes, you can use BaseCrudService for Wix CMS routing and data-driven page generation. It enables reliable collection-driven workflows by implementing consistent CRUD and reference-handling flows for list and detail pages without mismatched pagination.