nestjs / typeorm

TypeORM module for Nest framework (node.js) 🍇

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"name" parameter is deprecated by typeorm documentation, but is required while registering multiple databases in nestjs project.

Seberyak opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

deprecated parameter "name" is required for identifying datasources in project

Minimum reproduction code

https://github.com

Steps to reproduce

No response

Expected behavior

It shouldn't be deprecated, or new identifier should be added

Package version

9.0.1

NestJS version

9.0.11

Node.js version

16.16.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@nestjs/typeorm name !== typeorm name. We still require folks to provide the name parameter so we can distinguish different data sources.

image
@kamilmysliwiec what about that?

The parameter is still marked as deprecated. #1557 was not merged!

looks like it's still not merged, I was looking around for alternative for this from past 2 days but eventually I went with using it and now I found this thread... 🙁