debug typescript mocha and server in vscode

We recently are developing a graphql api using apollo server and Typeorm on top of Aws Lambda. Code-wise is kind of straightforward with schema defined, then resolvers then service layer then dao layer then model defined typeorm with its annotations/decorators. However there are 2 issues related to debugging, unit test and run graphql local. unit…

build rest api with node and express js

1. in the app js we need   2. To share the mongo db connection we can have the db info in a js file: 3. To share the model schema, we can put the content in a js file: 4. then in the rest implementation js module : DONE. To test them , remember…