Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

keep track of this temporary workaround #42

Open
github-actions bot opened this issue Jun 2, 2022 · 0 comments
Open

keep track of this temporary workaround #42

github-actions bot opened this issue Jun 2, 2022 · 0 comments
Labels
todo Auto-generated from TODO comments

Comments

@github-actions
Copy link

github-actions bot commented Jun 2, 2022

remove when the Typeorm Dataloader package supports TypeORM 0.3.0

https://github.com/tailoredmedia/backend-nx-skeleton/search?q=typeormgetconnection

// TODO: keep track of this temporary workaround

import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'
import path from 'node:path'
import { APP_INTERCEPTOR } from '@nestjs/core'
import { createConnection, getConnection } from 'typeorm'
import { AuthModule } from './auth/auth.module'
import { UsersModule } from './users/users.module'
import { AppController } from './app.controller'
import { ProjectsModule } from './projects/projects.module'
import ormConfig from '../ormconfig'

// TODO: keep track of this temporary workaround
// remove when the Typeorm Dataloader package supports TypeORM 0.3.0
// https://github.com/tailoredmedia/backend-nx-skeleton/search?q=typeormgetconnection
createConnection(omit(ormConfig, 'cli', 'migrations'))

@Module({
  imports: [
    ConfigModule.forRoot(),
@github-actions github-actions bot added the todo Auto-generated from TODO comments label Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
todo Auto-generated from TODO comments
Projects
None yet
Development

No branches or pull requests

0 participants