---
title: "Discussion on \"How to use Fastify and MongoDB\" | Hashnode"
description: "Discussion on \"How to use Fastify and MongoDB\". Learn step by step how to connect your Fastify application to MongoDB and create a CRUD REST-API to manage a to-do list service"
url: "https://hashnode.com/posts/how-to-use-fastify-and-mongodb/61856eaafd5d634d01698aa0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to use Fastify and MongoDB](https://backend.cafe/how-to-use-fastify-and-mongodb?utm_source=hashnode&utm_medium=feed)

Learn step by step how to connect your Fastify application to MongoDB and create a CRUD REST-API to manage a to-do list service

Nov 5, 2021 · 6 min read · backend.cafe  
Updated Oct 6, 2022  
Read the article

-   [#backend](https://hashnode.com/tag/backend)
-   [#validation](https://hashnode.com/tag/validation)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#rest-api](https://hashnode.com/tag/rest-api)
-   [#crud](https://hashnode.com/tag/crud)

## Written by

[Manuel Spigolon](https://hashnode.com/@Eomm)

@Eomm · Italy

  
[View profile](https://hashnode.com/@Eomm)

Developer

I'm Manuel and I work at NearForm as a Full Remote Software Developer from 🇮🇹 Italy. I'm one of the Fastify maintainers since 2019. Contributing to Open Source Software teaches me something new every day. You should join this extraordinary world.

## Responses 1

Markdown supported · ⌘↵ to post

[HImanshu Fulmali](https://hashnode.com/@Himanshu14)

[Oct 10, 2022](https://hashnode.com/posts/how-to-use-fastify-and-mongodb/61856eaafd5d634d01698aa0/comment/6343f433250857e669effc6c)

great effort but too hard to understand

[Manuel Spigolon](https://hashnode.com/@Eomm)

[Oct 12, 2022](https://hashnode.com/posts/how-to-use-fastify-and-mongodb/61856eaafd5d634d01698aa0/comment/6343f433250857e669effc6c#reply-6346f87e81c6df26fb022383)

Which part was not clear? So I can improve it or write a better blog post next time 👍

Thank you for the feedback

[HImanshu Fulmali](https://hashnode.com/@Himanshu14)

[Oct 13, 2022](https://hashnode.com/posts/how-to-use-fastify-and-mongodb/61856eaafd5d634d01698aa0/comment/6343f433250857e669effc6c#reply-6347a89b8213b93556f30b89)

[Manuel Spigolon](https://hashnode.com/@Eomm) Thanks for replying, while creating folders, it's getting confusing what we need to export in which folder (for a beginner like me).
