Database Operations ποΈ
Collection Access
1. Create a Document
await fetch('https://api.ub.bitbros.in/api/data/posts', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_KEY' },
body: JSON.stringify({
title: "Why BaaS is the future",
body: "Content goes here...",
tags: ["tech", "development"],
meta: { views: 0, likes: 0 }
})
});2. Read Documents
Fetch All
Fetch Single Document
3. Update a Document
Partial Update
4. Delete a Document
Validation & Schemas
Common Failure Cases (and why)
Last updated
