questpie-core/crud-api

Perform type-safe CRUD operations on QUESTPIE collections and globals.

5|3|Updated Dec 15, 2025
One-click install
npx skills add https://github.com/questpie/questpie --skill questpie-core-crud-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: questpie-core/crud-api
Source: https://github.com/questpie/questpie/tree/main/packages/questpie/skills/questpie-core/crud-api
Command: npx skills add https://github.com/questpie/questpie --skill questpie-core-crud-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies and standardizes data management operations (Create, Read, Update, Delete) for collections and globals within a QUESTPIE backend, ensuring type safety and consistency.

Core Features & Use Cases

  • CRUD Operations: Provides find, findOne, create, update, delete, count, updateMany, and deleteMany for collections.
  • Global Operations: Supports get and update for global data entities.
  • Querying Capabilities: Enables complex filtering with various operators, sorting, pagination, and relation population.
  • Context Management: Handles implicit context in handlers and explicit context in scripts/seeds.
  • Client SDK Mirroring: Offers a consistent API for both server-side and client-side operations.
  • Use Case: Automatically generate API endpoints for a 'products' collection, allowing users to list, view, create, update, and delete products with robust filtering and sorting options.

Quick Start

Use the questpie-core/crud-api skill to find all posts where the status is 'published' and order them by creation date in descending order.

Frequently Asked Questions about questpie-core/crud-api

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

FAQPage Schema
How do I implement type-safe CRUD operations for backend data management?

You implement type-safe CRUD operations by using standardized APIs for create, read, update, and delete actions on backend collections and globals. This ensures data consistency, supports complex querying, and maintains secure data manipulation.

What is the best way to filter and sort backend API collection data?

Filtering and sorting backend API collection data is best handled by a type-safe CRUD API supporting complex querying operators. This mechanism enables robust relation population and pagination directly within your data management operations.

Does the QUESTPIE backend support client SDK mirroring for API operations?

Yes, the QUESTPIE backend supports client SDK mirroring for API operations. It provides a consistent API interface that mirrors server-side handler operations, ensuring standardized data manipulation across both server-side and client-side environments.

How do I manage context for server-side handlers versus external scripts?

You manage context by utilizing implicit context handling within server-side handlers and applying explicit context management for external scripts and database seeds. This dual approach ensures secure and consistent data manipulation across different environments.

Can I use global data entities with standard CRUD API operations?

Yes, you can use global data entities with standard CRUD API operations. The system specifically supports global operations through dedicated get and update functions, alongside standard collection management for comprehensive backend data handling.

What are the limitations of using type-safe APIs for complex database queries?

Limitations of using type-safe APIs for complex database queries are generally tied to schema enforcement constraints, where strict typing may restrict highly dynamic or ad-hoc querying. However, the API still supports advanced filtering, sorting, and relation population.