-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use 'connectionName' and 'connectionOptionsReaderOptions' options together #32
Comments
For example if I want to use the dev:
type: "sqlite"
database: "./todomvc.db"
synchronize: true
logging: false
test:
type: "sqlite"
database: "./test/test.db"
synchronize: true
logging: false
dropSchema: true |
Ok @pleerock pointed me to the solution: typeorm: {
connectionName: 'development'
} I also need to point to the location of the config file as I'm in a monorepo and the standard file solution for typeorm config file doesn't work. I found out you can do that with: typeorm: {
connectionOptionsReaderOptions: { root: path.join(__dirname, '..') }
} These both work fine in isolation, however when I want to use both: typeorm: {
connectionOptionsReaderOptions: { root: path.join(__dirname, '..') },
connectionName: 'development'
} I get the |
connectionName
and connectionOptionsReaderOptions
options together
connectionName
and connectionOptionsReaderOptions
options together
hmm try to checkout code and debug |
Hi just start to explore typeorm and vesper. Really great frameworks.
Before I tried Prisma and graphql-yoga, but this is so much cleaner and easier to reason about!
One question, is it possible to use a different typeorm
connection
thandefault
in vesperbootstrap
?Which was defined in
ormconfig.yml
.The text was updated successfully, but these errors were encountered: