Relative Content

Tag Archive for nestjstypeorm

Nested async call how to handle in NEST js using typeORM

I have a service like below. I want to do lots of different validation. How can I handle the nested async call.
I tried the below and getDataForFirstValidation this gives an null response.
If I wrote the query inside firstValidation it is working.
I feel since it is a async/await call. it is taking time to get the response. By that time my console is printing.

Repositorios personalizados de typeORM

Queria usar repositorios personalizados en typeORM pero me tope con que @EntityRepository(User) estaba deprecado.
Termine con esta solución que el final de cuentas me esta sirviendo. Pero quiero saber si es optimo o la verdad es redundante, ineficiente o algo por el estilo.