---
title: "#mongosh articles | Hashnode"
description: "Explore 2 articles tagged #mongosh on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/mongosh"
---

Tag

# #mongosh

2 posts · 2 followers

[Joseph Gan](https://hashnode.com/@bwgjoseph) · [Oct 23, 2022](https://hashnode.com/posts/learn-how-to-connect-and-run-script-on-mongosh/6354f36700f8dea499065f37)

### [Learn how to connect and run script on mongosh](https://bwgjoseph.com/learn-how-to-connect-and-run-script-on-mongosh?utm_source=hashnode&utm_medium=feed)

Recently, I needed to write some scripts to run on mongosh and since there will be common code among the scripts. I was wondering if it is possible to write just like any JavaScript file (with import/export) to run on mongosh. I also explored a littl...

6 min read · [bwgjoseph.com](https://bwgjoseph.com/learn-how-to-connect-and-run-script-on-mongosh?utm_source=hashnode&utm_medium=feed)
