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 🤗

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

Watch my Free Get started with Dart course on Egghead.io and Subscribe to my email newsletter to download my Free 35-page eBook titled Get started with Dart and to be notified when new content is released.

Like, share and follow me 😍 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 dev.to and medium.com for my articles covering various aspects of the Dart language and ecosystem.

4 comments

  • 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()