Guides
Data
Declare and use app-scoped data collections.
For agents: Put collection declarations in the manifest and use
ctx.data.collection(name)from server code.
Server Use
const posts = ctx.data.collection("posts");
const post = await posts.create({ title: "Hello", slug: "hello" });
const page = await posts.list({ where: { slug: "hello" }, limit: 10 });
Creates and updates accept declared fields only. Unique indexes are enforced per app.