Creative Bracket

Dart and MongoDB Tutorial #2: Implement a RESTful api to interface with our database

In the last video we learnt how to talk to a MongoDB database using the mongo_dart package.

In this video we will learn how to write a RESTful api to talk to our MongoDB database with inbuilt Dart classes and the mongo_dart package. MongoDB is a well-known NoSQL database that stores its items as JSON documents (BSON to be exact).

At the end of this video, you will be comfortable writing a RESTful api to interface with a MongoDB database.

Further reading

Sharing is caring smile emoji

If you enjoyed reading this post, please share this through the various social buttons hovering on the left/top side of the screen ↖️arrow up emoji. Also, check out and subscribe to my YouTube channel (hit the bell icon too) for videos on Dart.

Subscribe to the newsletter for my free 35-page Get started with Dart eBook and to be notified when new content is released.

Like, share and follow me heart eyes emoji for more content on Dart.

Jermaine Oppong

Hello 👋, I show programmers how to build full-stack web applications with the Dart SDK. I am passionate about teaching others, having received tremendous support on sites like and for my articles covering various aspects of the Dart language and ecosystem.

Useful learning materials


  • Hey Jermaine,

    It is a way to receive from server a find() command as Json string? Because what I receive is a Json like but without the quotation marks. Thanks

  • Hi Jermaine,
    I need to make a request from a dart file to a dart server with a mongodb query, and the server to reply accordingly. Could you help me?
    that query will be inserted in coll.find()