import { type mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { CreateUserOptions } = mongo;
Properties
The user’s password. The pwd field is not required if you run createUser on the $external database to create users who have credentials stored externally to MongoDB.
Optional. Any arbitrary information. This field can be used to store any data an admin wishes to associate with this particular user. For example, this could be the user’s full name or employee id.
The roles granted to the user. Can specify an empty array [] to create users without roles.
Optional. Indicates whether the server or the client digests the password. See https://docs.mongodb.com/manual/reference/command/createUser/#dbcmd.createUser
Optional. The level of write concern for the creation operation. The writeConcern document takes the same fields as the getLastError command.
Optional. The authentication restrictions the server enforces on the created user. Specifies a list of IP addresses and CIDR ranges from which the user is allowed to connect to the server or from which the server can accept users.
Optional. Specify the specific SCRAM mechanism or mechanisms for creating SCRAM user credentials.
Optional. A user-provided comment to attach to this command.