Skip to main content
Version: 1.0.0

Data structure & best practices

Naming conventions

  • Collections: lowercase_plural
  • Documents: camelCase or 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.