Skip to main content

All Questions

0 votes
2 answers
74 views

SequelizeModule — autoLoadModels / [Nest] ERROR SequelizeModule Unable to connect to the database. Retrying

I'm learning Nest.js, I'm trying to connect via SequelizeModule to my local postgres database, but I keep getting this error Error when starting start:dev [20:41:14] Starting compilation in watch mode....
ralph's user avatar
  • 3
0 votes
1 answer
776 views

No Overload Matches This Call with drizzle-orm and Postgres

I'm working with drizzle-orm to insert data into a PostgreSQL database using Node.js. However, I'm running into the following TypeScript error when trying to insert a post with an authorId that ...
Inexpli's user avatar
  • 90
0 votes
0 answers
124 views

Prisma Migration Issue: "Migration history doesn't match" Error on Production Database

I'm encountering an issue with Prisma migrations in my NestJS application. My backend setup includes Prisma and PostgreSQL, and I'm using a remote database for my production environment. Every time I ...
Parth Panchal's user avatar
0 votes
1 answer
45 views

Why do I have to include another key to save db entities linked to another entity?

I am building a NestJS RESTful API for a library. I have a Book entity and a Category entity. Each book has a category. Book entity @Entity() export class Book { @PrimaryGeneratedColumn() id: ...
Jorge Calo's user avatar
0 votes
0 answers
45 views

RangeError: Maximum call stack size exceeded at Object.mkdirSync (node:fs:1391:15)

``RangeError: Maximum call stack size exceeded at Object.mkdirSync (node:fs:1391:15) at sync (C:\hotel-management-system\backend\node_modules\mkdirp\index.js:74:13) at sync (C:\hotel-...
Ilyas Ali's user avatar
0 votes
0 answers
48 views

Pgadmin sql malformed array literal - No operator matches the given name and argument type(s). You might need to add explicit type casts

HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. Got this error when I execute below query in pg. SQL Query: SELECT COUNT(DISTINCT("c&...
userrj_vj_051620's user avatar
1 vote
1 answer
1k views

Full text search in PostgreSQL using prisma is not working

I am working on a nestJS project which use Prisma & PostgreSQL, I am using fulltextsearch, here is my schema generator client { provider = "prisma-client-js" previewFeatures = ...
Chandan Kalita's user avatar
0 votes
0 answers
128 views

Validation error when saving a record to database nest.js

I'm following along with this tutorial: https://www.freecodecamp.org/news/build-web-apis-with-nestjs-beginners-guide/ I'm trying to save a user record to the PostGres DB and I'm getting the following ...
Graham Morby's user avatar
0 votes
0 answers
75 views

image field contains null values ,even after the payload is showing image data as well as other field data

Registration form ` import React,{useState} from "react"; import Navbar from "../components/Navbar"; import custom_axios from '../axios/AxiosSetup'; import { getLoginInfo } from '.....
Aijaz Ahmad's user avatar
0 votes
2 answers
2k views

Nestjs + postgresql +dto store jsonb gives must be a json string error

Currently having nestjs setup up with postgresql as database. I know that postgresql columns can store json, so I am trying to play around with it but I keep on getting the error { "message&...
Dora's user avatar
  • 7,010
1 vote
0 answers
518 views

How can I run typeORM migration automatically?

Has anyone encountered such a problem with typeORM version 0.3.17 trying to run migration automatically when app launched? I'm using typeorm for a microservice project (run it with Docker) and apart ...
Shlomo Raday's user avatar
1 vote
1 answer
710 views

Get repository in a custom validator class in Nest.js and TypeORM

I am trying to make a custom decorator validator using class-validator in a Nest.JS project. This is the code of the decorator import { InjectRepository } from '@nestjs/typeorm'; import { ...
H3lltronik's user avatar
0 votes
3 answers
8k views

Error: connect ECONNREFUSED ::1:5432 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16)

I am trying to connect to PostreSQL database. I am working with JavaScript, TypeScript, NestJS and TypeORM. I have the database created in pgAdmin 4. Everything was working until I changed some code ...
Viktor's user avatar
  • 21
1 vote
1 answer
764 views

How to add relation on microservices on Prisma using NestJS?

Schema on User Management service: model User { id String @id @default(uuid()) username String @unique email String @unique password ...
Albi Fauzi's user avatar
0 votes
1 answer
3k views

Prisma error on create method - Argument name and Argument location is missing

I am creating the place then I keep getting the Prisma error yet I am providing all the required data. Every time I am creating the place I get this error yet I provided all the required data. I'm not ...
D12's user avatar
  • 1

15 30 50 per page
1
2 3 4 5