Optional ReadonlynameNamed connection for multi-database support. Defaults to 'default'.
When a name is provided, the service registers under
database.<name> (e.g. database.primary); otherwise it uses the
canonical CAPABILITIES.DATABASE token. Dot notation, not a colon:
createCapabilityToken rejects colons.
ReadonlyoptionsMongo adapter configuration; url (or client) is required.
Optional ReadonlyreadinessOptional schema readiness, evaluated by this connection's health indicator.
ReadonlytypeSelects the Mongo arm.
The arm selecting the Mongo adapter over the native
mongodbdriver.options.urlis required by the union unlessoptions.clientis supplied, so a registration that forgets both is a compile error instead of aconnect()throw — the same guarantee the'custom'arm givesadapter. The client is supplied inject-or-lazy (§12.2 of AI_GUIDELINES):clientis an already-constructed structuralIMongoClient, and absent it the adapter performs a literalimport('mongodb')at connect time.Example
Since
0.2.0