Asynchronous Providers — Fundamentals · NestJS

Open a connection and load seed data in async factory providers, so Nest waits for both before the first request is served.

What you will learn

Read the theory for Asynchronous Providers

All Fundamentals lessons

All NestJS courses

loading types…

What you'll learn

  • Write an async factory provider and explain what Nest waits for before it constructs dependents and listens
  • Chain async providers through inject so one waits for another
  • Tell startup-time work, which belongs in an async provider, from per-request work, which does not