refactor(cli): simplify optional database passthrough in mongo-query command

This commit is contained in:
Kevin Messiaen 2026-07-06 20:16:28 +07:00
parent 6563fddf87
commit 10de18d63f
No known key found for this signature in database
GPG key ID: 19FF750A17315202

View file

@ -69,7 +69,7 @@ export function registerMongoQueryCommands(program: Command, context: KtxCliComm
projectDir: resolveCommandProjectDir(command),
connectionId: options.connection,
collection: options.collection,
...(options.database ? { database: options.database } : {}),
database: options.database,
pipeline,
limit: options.limit,
output: options.output,