Skip to content

MongoDB

Use MongoDB when your Arc application needs document storage. Cratis.Arc.MongoDB handles collection injection and BSON conventions while letting you use the MongoDB driver directly. It is optional and does not require Chronicle.

Follow getting started to install the package, configure a server/database, and activate your host. Keep that page as the canonical setup path rather than copying an incomplete bootstrap.

  • Concepts: store strongly typed values without wrapper documents.
  • Serializers: understand BSON representations, including date precision and Guid formats.
  • Naming policies: choose collection and member names before writing data.
  • Class mapping: customize individual document types.
  • Convention packs: apply and filter shared conventions.
  • Geospatial types: store GeoJSON and construct driver query geometry.

MongoDB observation is not an event log, and MongoDB persistence does not append Chronicle events. See the separate Chronicle integration if you intentionally add event sourcing.