diff --git a/internal/database/dialect/mongodb.go b/internal/database/dialect/mongodb.go index e86c4424..0091dafc 100644 --- a/internal/database/dialect/mongodb.go +++ b/internal/database/dialect/mongodb.go @@ -79,7 +79,7 @@ func (db MongoDB) AuthenticationDatabase(c config.Global) string { func (db MongoDB) ExecCommand(conf config.Exec) *command.Builder { cmd := command.NewBuilder( - "mongosh", + command.Raw(`"$(which mongosh || which mongo)"`), "--host="+conf.Host, "--username="+conf.Username, "--password="+conf.Password,