the output of function print

Yi Liu shared this idea 19 months ago
Completed

when I run the code: print(1,2,3)

the output is : 1, 2, 3

but in the mongo shell, the output is : 1 2 3

how can I remove the comma, thx

Comments (3)

photo
1

It's bug. We will fix it in the next release.

As a work around solution, you can use console.log

console.log(1,2,3) //output:  1 2 3

photo
1

It works, thx

多谢

photo
1

fixed in version 4.7.0