Database

Scalable database with real-time capabilities

A fully managed database that scales automatically with your application.

Key Features

FeatureDescription
Real-time SyncChanges sync instantly across all clients
Offline SupportWorks offline, syncs when back online
Auto ScalingScales from prototype to production
Strong TypingFull TypeScript support

Basic Operations

const doc = await db.collection('users').create({
  name: 'Jane Doe',
  email: 'jane@example.com',
  createdAt: new Date()
});

Real-time Subscriptions

Listen to changes in real-time:

db.collection('messages')
  .where('roomId', '==', 'general')
  .subscribe((messages) => {
    console.log('Messages updated:', messages);
  });