Get startedGet started for free

Get set up for the hands-on exercises

This exercise is part of the course

Text-to-Query Agents with MongoDB and LangGraph

View Course

Exercise instructions

Follow the instructions to create your MongoDB cluster and add the connection string to the MONGODB_URI environment variable.

  • Initialize a MongoDB Python client using your MONGODB_URI environment variable.
  • Check the connection to your cluster using a "ping" command.


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise