I have two apps, one front end (react.js) and one a REST API back-end(nest.js based on express.js). How do I get the IP address of the user accessing the back-e
I have an .env file at the root of my NestJs project with some env variables in it. The strange thing is that I am able to read the variables in service files
I have an .env file at the root of my NestJs project with some env variables in it. The strange thing is that I am able to read the variables in service files
I want to create a base service using a generic class which I wrote below: import { BaseEntity } from './base.entity'; import { Repository } from 'typeorm'; e
I have this Nest.js app running and setup for a while and, out of a sudden, it started reporting this when I run npm run build. node_modules/@nestjs/config/dist
I'm trying to create a guard factory in order to create a guard based on given params and ran into an issue. I built the following factory @Injectable() export
I am building RESTful service with NestJs, I have followed the example to build configurations for different environments. It works well for most code. However
I m trying to fetch user details using typeorm in nestjs below are the tables in mysql database user table id (PK) email 1 [email protected] 2 [email protected] role table
How can i create an function to pagination and filtering with typeorm? I use queryBuilder() but i don't how to create an function to divide the results into pag
I'm trying to put a foreign key in knex migration. "age_group_id"(primary key of the "agegroups" table) is the foreign key of the "users" table. So, I have put
I have a task to get key information about users in database. There are many left joins and the query works quite slow. I'm trying to optimize it somehow and I
Let's assume a monolithic web service. The architectural design is based on the DDD and divides the domain into sub-domains. These are structured according to t
Im trying to make file upload in my api using this strategy: https://stephen-knutter.github.io/2020-02-07-nestjs-graphql-file-upload/. Without the ValidationPi
I have this stored procedure to save a purchase with a token relate. But I'm facing an error when I try to call it in Nestjs/typeorm. I checked and I'm passing
The docs at https://docs.nestjs.com/graphql/other-features#exception-filters only says : Nest standard exception filters are compatible with GraphQL applicatio
I'm doing a little project in this quarantine time to learn about the backend part of a project. In this case I'm using Angular as client-side and NestJS as bac
I'm am developing an application using NestJS and TypeORM. Whenever I try to generate migrations from my entities (by running typeorm migration:generate) I get
I am unable to connect to mongodb asynchronously. Please let me know what am I doing wrong. MongoConfig file: import { MongooseModuleOptions } from '@nestjs/mon
Problem In a federated nest app, a gateway collects all the schemas from other services and form a complete graph. The question is, how to re-run the schema col
I'm using NestJS 7.0.7 and Winston 3.2.1 (with nest-winston 1.3.3). I'm trying to integrate Winston into NestJS, but so far, I'm unable to inject a logger inst