MongoDB Loading¶
MongoDB credentials must stay in a local .env file or process environment. Do not commit real connection strings.
Required local environment:
Build the cleaned local data first:
Dry-run the Mongo loader:
Load the current scrubbed dataset:
Default collections:
incidents_scrubbed: one scrubbed source row per document, including duplicate markers.dataset_builds: latest build summary, source inventory, and privacy metadata.
The loader does not include victim names, investigator/source notes, PDF links, href links, or private raw fields.