bknd-crud-update
Use when updating existing records in a Bknd entity via the SDK or REST API. Covers updateOne, updateMany, updating relations ($set, $add, $remove, $unset), partial updates, conditional updates, response handling, and common patterns.
npx skills add majiayu000/claude-skill-registry --skill bknd-crud-update-cameronapak-freedom-stack-v3-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# CRUD Update Update existing records in your Bknd database using the SDK or REST API. ## Prerequisites - Bknd project running (local or deployed) - Entity exists with records to update - SDK configured or API endpoint known - Record ID or filter criteria known ## When to Use UI Mode - Quick one-off edits - Manual data corrections - Visual verification during development **UI steps:** Admin Panel > Data > Select Entity > Click record > Edit fields > Save ## When to Use Code Mode - Application logic for user edits - Form submissions - Bulk updates - Automated data maintenance ## Code Approach ### Step 1: Set Up SDK Client ```typescript import { Api } from "bknd"; const api = new Api({ host: "http://localhost:7654", }); // If auth required: api.updateToken("your-jwt-token"); ``` ### Step 2: Update Single Record Use `updateOne(entity, id, data)`: ```typescript const { ok, data, error } = await api.data.updateOne("posts", 1, { title: "Updated Title", status: "published", }); if (ok) { console.log("Updated post:", data.id); } else { console.error("Failed:", error.message); } ``` ### Step 3: Handle Response The response object: ```typescript type UpdateResponse = { ok: boolean; // Succes
- Prerequisites
- When to Use UI Mode
- When to Use Code Mode
- Code Approach
- Step 1: Set Up SDK Client
- Step 2: Update Single Record
- Step 3: Handle Response
- Step 4: Partial Updates
- Step 5: Update Relations
- Step 6: Update Multiple Records (Bulk)
- REST API Approach
- Update One
- Update with Auth
- Update Relations
curl -X PATCH http://localhost:7654/api/data/posts/1 \ Change author Add tags curl -X PATCH "http://localhost:7654/api/data/posts?where=%7B%22status%22%3A%22draft%22%7D" \
What does the bknd-crud-update skill do?
Use when updating existing records in a Bknd entity via the SDK or REST API. Covers updateOne, updateMany, updating relations ($set, $add, $remove, $unset), partial updates, conditional updates, response handling, and common patterns.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill bknd-crud-update-cameronapak-freedom-stack-v3-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
