Data structure & best practices
Naming conventions
- Collections:
lowercase_plural - Documents:
camelCaseor unique IDs
Property management
Add properties in a backward-compatible way. Avoid breaking changes.
Complex types
Prefer arrays of objects over maps with dynamic IDs to simplify queries.
Class model (diagram)
classDiagram
class User {
string id
string email
}
class Order {
string id
date createdAt
}
class Product {
string id
string name
}
User "1" --> "*" Order
Order "*" --> "*" Product
What's new in 1.1.0
- Added this changelog section for the doc to highlight version-specific additions.
- Clarified preference for arrays of objects over maps in the Complex types section.