Documents Storage
SoliDB's core storage engine. High-performance, transactional Key-Value storage for JSON documents.
Overview
Document collections are the default storage type in SoliDB. They provide flexible, schema-free storage for JSON documents while maintaining full ACID guarantees.
Fast Key-Value
Optimized for point lookups and range scans using primary keys.
JSON Native
Store arbitrary JSON structures. No rigid schemas required.
Transactional
Multi-document, multi-collection ACID transactions supported out of the box.
Creating a Document Collection
Create a collection with type: "document" (default).
JSON Schema Validation
Enforce data integrity by attaching a JSON Schema to your collection. SoliDB supports three validation modes:
Create with Schema
Validation Error
Attempting to insert an invalid document in strict mode will return a 400 Bad Request error with details about the schema violation.