Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB playground output not showing in VS Code terminal

I'm trying to run a few queries on MongoDB playground extension. According to the documentation, the output of the queries should be shown in a terminal. However, A new file is opening up to display the result and the playground output tab of the terminal is empty.

How do I get it to show the result in the terminal?

enter image description here

like image 485
Teja Juluru Avatar asked Sep 11 '25 16:09

Teja Juluru


1 Answers

Use print() or console.log() command

Note that print and console.log will print in the VS Code Output panel, while the result of the playground is displayed in an editor.

See https://www.mongodb.com/community/forums/t/print-function-in-vscode-extension-is-missing/103118/2

like image 100
SaharatT Avatar answered Sep 14 '25 07:09

SaharatT