DEV Community

Discussion on: Build a NestJS Module for Knex.js (or other resource-based libraries) in 5 Minutes

Collapse
 
shamilw profile image
Shamilw

Good afternoon, I am using your package github.com/nestjsplus/knex
and I wanted to wrap the user.service in a repository and I got errors

Potential solutions:

  • If UserRepository is a provider, is it part of the current UserService?
  • If UserRepository is exported from a separate @Module, is that module imported within UserService? @Module({ imports: [ /* the Module containing UserRepository */ ] }