What it provides, and who provides it
Replica-set versus standalone is probed at connect time and recorded in the capability note. Standalone has no multi-document transactions, so fences and previews are content hashes rather than transactional guarantees.
Command grammar
"$N" references params[N]. Everything else is a literal. A key the verb does not use is refused, not ignored, so a find carrying set fails rather than passing review as a harmless read. Unknown filter operators become unparsed_construct and deny. A parameter holding a document or a list is refused as a filter value rather than executed: in that position the driver would read it as an operator.
Writes carry the scope too
Reads and deletes are restricted by conjoining the lease’s bindings into the filter. Writes are restricted by what they write: an insert must set every scoped field explicitly to the lease’s value, and an update may neither assign a scoped field a different value nor remove it. Anything else is refused rather than corrected, so the operation that executes is the one a reviewer approved.Setting it up
database. It may also come from the DSN path, but an empty value is refused rather than inferred silently. Set collections on any non-trivial database; without it the catalog includes every collection.
Known gaps
- Native per-lease principals. MongoDB users and roles exist, but this connector reports gateway-enforced identity honestly rather than minting database users per lease.
- Relationship scoping is not supported.