typescript-express-example icon indicating copy to clipboard operation
typescript-express-example copied to clipboard

Example how to use Express and TypeORM with TypeScript

Results 6 typescript-express-example issues
Sort by recently updated
recently updated
newest added

运行的时候显示这个错误: tsc && node src/index.js node_modules/typeorm/driver/mongodb/typings.d.ts:4288:13 - error TS2339: Property 'asyncIterator' does not exist on type 'SymbolConstructor'. 4288 [Symbol.asyncIterator](): AsyncIterableIterator; ~~~~~~~~~~~~~ node_modules/typeorm/driver/mongodb/typings.d.ts:4288:31 - error TS2304: Cannot find name 'AsyncIterableIterator'. 4288...

* Update references to latest version. * Remove usage of deprecated methods. * Add dist folder to prevent clutter.

how make class a controller there are 4 method: getAll, create , edit , update ?

Hi There In typescript-express-example/src/index.ts you have some beautifully elegant code: ` // register all application routes AppRoutes.forEach(route => { app[route.method](route.path, (request: Request, response: Response, next: Function) => { route.action(request, response)...

Issue type: [x ] question [ ] bug report [ ] feature request [ ] documentation issue Database system/driver: [ ] cordova [ ] mongodb [ ] mssql [x ]...

Either using curl or Postman: Keep getting this error: `QueryFailedError: ER_NO_DEFAULT_FOR_FIELD: Field 'title' doesn't have a default value at new QueryFailedError (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\typeorm\error\QueryFailedError.js:11:28) at Query. (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\typeorm\driver\mysql\MysqlQueryRunner.js:169:45) at Query. (D:\business\prototyping\development\src\node\typescript-express-example\node_modules\mysql\lib\Connection.js:525:10) at Query._callback...