Database Configuration

// Initialize ORM in development mode

const orm = new WebORM({
  endpoint: 'http://localhost',
  projectId: 'demo-project',
  databaseId: 'demo-database',
  development: true
});

// Define schema with validation rules

const db = await orm.init([{
  name: 'tasks',
  schema: {
    title: { type: 'string', required: true },
    completed: { type: 'boolean', default: false },
    priority: { type: ['low','medium','high'] }
  }
}]);

Create New Task

// db.table('tasks').create({...})

Query Operations

// db.table('tasks').all()

Filter by Priority:

// db.table('tasks').query({priority})

// db.table('tasks').delete(id)

Tasks (0)

No tasks found. Add one above!

Development Mode: This demo uses Appwrite ORM's development mode. All data is stored locally in browser cookies. No real Appwrite server is needed, making it perfect for testing and prototyping!