needle-innovision / nestjs-tenancy

Multi-tenancy approach for nestjs - currently supported only for mongodb with mongoose
MIT License
187 stars 58 forks source link

Error when using nestjs-tenancy with @nestjs/graphql #47

Open kingRayhan opened 1 year ago

kingRayhan commented 1 year ago

I'm currently working on a multi-tenancy backend using NestJS, GraphQL, and MongoDB. I came across the nestjs-tenancy package and it works great for implementing multi-database multi-tenancy. However, I'm running into an error when using this package with @nestjs/graphql.

The error message I'm seeing is req.get is not a function. I've tried troubleshooting the issue but haven't been able to find a solution yet. I believe this error is related to the interaction between nestjs-tenancy and @nestjs/graphql.

image
sandeepsuvit commented 1 year ago

Hi @kingRayhan thanks for writing in. We don't have graphql support implemented for this library yet.

ntheanh201 commented 1 year ago

Hi @kingRayhan I also implemented it with GraphQL but my problem was I couldn't handle any GraphQL requests, the only thing I can see is all the RestfulAPI requests are coming through this lib. Could you fix it?