Optional Readonlyclient?: IMongoClientAn already-constructed client; omit it to load the driver lazily.
Readonlyurl: stringThe connection string used to construct a client when none is injected.
The database the collections live in is taken from database when
present, otherwise the database encoded in this URI.
Readonlyclient: IMongoClientAn already-constructed IMongoClient.
When present, the lazy import('mongodb') never runs — the
seam that keeps the branching unit-testable.
Optional Readonlyurl?: stringThe connection string; unread once a client is injected.
Options for the MongoAdapter — the
'mongodb'arm.A union of two arms, so supplying neither
urlnorclientis a compile error rather than aconnect()throw — the guarantee every other built-in arm gives ('prisma'requiresprismaClient,'drizzle'requires both Drizzle options,'custom'requiresadapter). Both members stay readable on either arm, so the adapter readsoptions.urlandoptions.clientwithout narrowing first.