nestjs / typeorm

TypeORM module for Nest framework (node.js) 🍇

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inject generic repository

gcherem opened this issue · comments

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ ] Feature request
[X] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

I could not post at the original thread #187 because it is locked. I created the mixin as proposed at the @krazibit comment

But when I try to implement/extend the DataServicelike this

export class MyService extends DataService(MyEntity) {

I get the error:

A class can only implement an identifier/qualified-name with optional type arguments.ts(2500)

Am I missing something? Can anyone provide an example on how to implement/extend that mixin? Thanks

Please search through some of our old issues on this (this has been discussed several times in the past). Also, for such questions, please use our Discord channel.