crud

Execute MongoDB CRUD operations on a target database and collection.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill crud-theslashdojo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crud
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/mongodb/crud
Command: npx skills add https://github.com/theslashdojo/dojo --skill crud-theslashdojo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mongodb, bson, and includes scripts (resource) components.

What problem does it solve?

Automates reliable, machine-friendly MongoDB document lifecycle operations so agents and automation can read, write, and batch-change data without manual shell choreography or ad-hoc snippets.

Core Features & Use Cases

  • Structured Reads: Query with filters, projections, sort, skip, and limit while preserving cursor semantics for bounded results.
  • Robust Writes and Bulk: Insert, update, replace, delete, and run bulkWrite batches while returning acknowledged result objects for programmatic inspection.
  • Operational Use Cases: Useful for application data mutations, audits, backfills, migrations, cleanup jobs, and integration tasks that require deterministic JSON results and Extended JSON support.

Quick Start

Provide a MONGODB_URI and a JSON payload with database, collection, and operation, then run the bundled run-crud.js script to execute the requested CRUD action.

Frequently Asked Questions about crud

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

FAQPage Schema
How do I automate MongoDB CRUD operations in Node.js without manual shell commands?

MongoDB CRUD operations can be automated in Node.js by running a script that accepts a JSON payload with database, collection, and operation parameters, executing structured reads and writes programmatically.

How does Extended JSON input work for MongoDB bulk write operations?

Extended JSON input allows MongoDB bulk write operations to process strict type representations for inserts, updates, and deletes, returning machine-friendly acknowledged result objects for programmatic inspection.

Can I run MongoDB migrations and data audits using a structured script?

MongoDB migrations and data audits are supported by executing structured query filters, projections, and bulk write batches that return deterministic JSON results for application data mutations and cleanup jobs.

Do I need a MongoDB connection string to perform bounded reads with cursor semantics?

A valid MongoDB connection string is required to execute structured reads, applying sort, skip, and limit parameters while preserving cursor semantics to return bounded query results.

What's the best way to handle database backfills and cleanup jobs for MongoDB documents?

Database backfills and cleanup jobs are handled by executing bulkWrite batches on a target MongoDB database and collection, returning acknowledged result objects for deterministic programmatic verification.