HF RL Explorer

Terminal Bench Task: Connect to MongoDB with Node.js and Authenticate

Terminal Bench Task: Connect to MongoDB with Node.js and Authenticate: a task in Terminal-Lego-15k (Harbor dataset). You are given a small Node.js project in a Linux terminal environment. Your task is to write a script that connects to a MongoDB instance using the official Node.js MongoDB driver…

The task

You are given a small Node.js project in a Linux terminal environment. Your task is to write a script that connects to a MongoDB instance using the official Node.js MongoDB driver, authenticates with a username and password, inserts a document into a collection, and verifies the inserted result.

Part of PrimeIntellect/Terminal-Lego-15k.