O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

src/data-layer 

This folder is responsible for the overall organization of the data, its storage, and accessibility methods. Model definitions and iridium files can be found here. It has the following folders:

  • Adapters: This implements the setup of MongoDB connection methods for connecting to the MongoDB database and adding events on connected, error, open, disconnected, reconnected, and forced exit methods
  • Data-abstracts: This has both the schemas representing the structure of each MongoDB collection and the documents representing each set of data in the collection
  • Data-agents: This has the query transactions against the data store for each MongoDB collection
  • Model: This has a TypeScript class representation of the data portrayed by the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required