Skip to content
NxDocs

Nx Conf is happening again!!Nx Conf is happening again!!Details here→

NxNx CloudPackagesPluginsRecipes
Community channelLatest newsYoutube channelNx is open source, check the code on GitHub
  • Getting Started
    • Set up a new workspace
    Nx Console
    • Nx Console Telemetry
    • Nx Console Generate Command
    • Nx Console Run Command
    • Nx Console Add Dependency Command
    • Nx Console Project Pane
    • Nx Console Keyboard Shortcuts
    CI
    • CI Setup
    • Prepare applications for deployment via CI
    • Setting up Azure Pipelines
    • Setting up CircleCI
    • Setting up GitHub Actions
    • Setting up Jenkins
    • Setting up GitLab
    • Setting up Bitbucket
    • Troubleshooting Nx Install Issues
    Adopting Nx
    • NPM/Yarn/PNPM workspaces
    • Add to any Project
    • From CRA
    • From Angular CLI
    • Nx and Lerna
    • From AngularJS
    • Preserving Git Histories
    • Manual migration
    Adopting Nx From Angular CLI
    • From Angular CLI
    • From Angular CLI to Integrated
    • From Angular CLI Manually
    • From Multiple Angular CLI Repos
    Executors
    • Use Executor Configurations
    • Running Custom Commands
    Environment Variables
    • Define Environment Variables
    • Use Environment Variables in React
    • Use Environment Variables in Angular
    Module Federation and Micro Frontends
    • Faster Builds with Module Federation
    • Setup Module Federation with SSR for Angular and React
    • Advanced Micro Frontends with Angular using Dynamic Federation
    • Nx Micro-Frontend Example
    Storybook
    • Publishing Storybook: One main Storybook instance for all projects
    • Publishing Storybook: One Storybook instance per scope
    • Publishing Storybook: One main Storybook instance using Storybook Composition
    Deployment
    • Deploying a Node App to Fly.io
    • Add and Deploy Netlify Edge Functions with Node
    • Deploying AWS lambda in Node.js
    • Serverless deployment with Deno Deploy
    • Add and Deploy Netlify Edge Functions with Deno
    • Deploying Next.js applications to Vercel
    Database
    • Using Prisma with NestJS
    • Using Mongo with Fastify
    • Using Redis with Fastify
    • Using Postgres with Fastify
    • Using PlanetScale with Serverless Fastify
    Enforce Module Boundaries
    • Ban Dependencies with Certain Tags
    • Tag in Multiple Dimensions
    • Ban External Imports
    • Tags Allow List
    Example Repos
    • Powering Up React Development With Nx
    • Using Apollo GraphQL
    • Large Repo and Caching
    • Large Repo and DTE
    Other
    • Run Root-Level NPM Scripts with Nx
    • Disable Graph Links Created from Analyzing Source Files
    • Workspace Watching
    • Advanced Update Nx
    • JavaScript and TypeScript
    • React Native with Nx
    • Remix with Nx
    • Adding Images, Fonts, and Files
    • Setup incremental builds for Angular applications
    • Profiling Build Performance
    • Using ESLint in Nx Workspaces
    • Configuring Browser Support
    • Using Tailwind CSS in React
    • React 18 Migration
    • Using Tailwind CSS with Angular projects
    • Using NgRx
    • Using Data Persistence operators
    • Find the Last Successful Commit in Azure Pipelines
    • Troubleshoot Cache Misses
    • Export Project Graph
    • Resolve Circular Dependencies
    • Include All package.json Files as Projects
    • Include Assets in Build
    • Identify Dependencies Between Folders
    • Rescope Packages from @nrwl to @nx
    • Standalone NgRx APIs
  1. recipes
  2. database
  3. mongo fastify

Using MongoDB with Fastify in an Nx Workspace

In this example repo, you’ll learn how to:

  • Leverage Nx generators to scaffold out project configurations
  • Setup MongoDB with Fastify

Example repository/nrwl/nx-recipes/tree/main/fastify-mongo#nx--fastify--mongodb

On this page
  • Overview

Related Documentation

Recipes

  • Using Prisma with NestJS
  • Using Redis with Fastify
  • Using Postgres with Fastify
  • Using PlanetScale with Serverless Fastify
  • Deploying a Node App to Fly.io
  • Add and Deploy Netlify Edge Functions with Node
  • Deploying AWS lambda in Node.js
Report an issueEdit this page

Footer

Nx

Smart, Fast and Extensible Build System

TwitterGitHubSlackYoutubeNewsletter

Resources

  • Blog
  • Youtube Channel
  • Nx Playbook
  • Brands & Guidelines
  • Site Map

Help

  • Documentation
  • Community
  • StackOverflow
  • Report Issues
  • Status Page

Community

  • Twitter
  • GitHub
  • Newsletter
  • Slack
  • Help Us

Solutions

  • Nx
  • NxCloud

© 2023 made with by