Skip to content

Commit

Permalink
fix(mongo): add config authDatabase (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForkKILLET authored Aug 25, 2024
1 parent 4b649b8 commit d4ffbd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mongo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ export namespace MongoDriver {
username: z.string(),
password: z.string().role('secret'),
database: z.string().required(),
authDatabase: z.string(),
writeConcern: z.object({
w: z.union([
z.const(undefined),
Expand Down
1 change: 1 addition & 0 deletions packages/mongo/src/locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ port: The port number to be connected.
username: The username used for authentication.
password: The password used for authentication.
database: The name of the database we want to use.
authDatabase: The name of the database for authentication.
writeConcern:
$description: Write Concern
w:
Expand Down
1 change: 1 addition & 0 deletions packages/mongo/src/locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ port: 要连接到的端口号。
username: 要使用的用户名。
password: 要使用的密码。
database: 要访问的数据库名。
authDatabase: 用于验证身份的数据库名。
writeConcern:
$description: Write Concern
w:
Expand Down

0 comments on commit d4ffbd7

Please sign in to comment.