Overview

Create a Collection

createCollection(name: string);

Example#

const { AxioDB } = require("axiodb");
 
const db = new AxioDB();
const myDB = await db.createDB("MyDatabase");
 
const collection = await myDB.createCollection("users");
console.log("Collection created:", collection);

Updated

Was this page helpful?