All Questions
3,370
questions
0
votes
0
answers
7
views
How to Properly Create the Data Architecture for a PERN Stack Application?
I'm building a web application using the PERN stack, and I'm looking for best practices on how to design the data architecture.
I just did a basic pernTODO in order to practice my postgressSQL skill a ...
0
votes
1
answer
42
views
Selecting Rows By Specific Column Data in PostgreSQL
I'm trying to build a recipe finder app (PERN stack) like SuperCook but I ran into some problems with my postgres table.
Short description of the desired result. I'd like the user to select some ...
0
votes
0
answers
22
views
Return 403 forbidden in production env
I have issue when try to perform the api in production environment, but it works it my staging environment. This is my code for the api
import prisma from '../../../prisma/db';
export default async ...
0
votes
0
answers
13
views
How to Upsert Nested Relations in Prisma, using connectOrCreate? connectOrCreate doesn't update deeply nested relation
I'm working on an application using Prisma ORM with a schema that includes Profile, Contact, and SocialMedia models. I need to perform an update operation on a Profile, which should also handle ...
-1
votes
0
answers
35
views
Can't access data from sqlite db with js
I'm trying js from the first time and want to make a website, I need to get data from a users database to verify them but i can't figure out how
const sqlite3 = require('sqlite3').verbose();
var sql;
...
0
votes
0
answers
51
views
How do I store a parametrized string in database?
My question is in the context of JavaScript.
Consider the object
{'name':`${name}`,'age':10}
My goal is to store this object in a database and then retrieve it in another session. The other session ...
0
votes
0
answers
23
views
Node Js Backend, Database Queries Causing Memory Leak
I have a backend written in NodeJs. I am using a postgreSQL database. I am using docker to run containers. There is a problem I am encountering that the memory consumption of the backend container ...
0
votes
0
answers
25
views
User ID not found in UserDefaults or invalid UUID string
I am trying to display previously created events on my calendar page using a fetch events function. I have made an api that has a route to fetch events from my database. In my database, when an event ...
0
votes
1
answer
43
views
Javascript and Excel DB
I made a Javascript nodejs project that stores data in Excel.
I can access all columns in the entire file without any problems, but the value of the cells containing time information(12:30) is given ...
1
vote
0
answers
30
views
Single database connection vs database connection pool
My understanding of a connection pool is that multiple connections to the database hang around and a client application can use them in order to send queries to the database, without having to go ...
0
votes
0
answers
25
views
I can't see messages in the database, How can I do it ? nodejs postresql
I share my code photo, What is the wrong anyone tell me ? I cant see my data in database. How can I fix it? I can share client side code. I have 2 day for finish this project. I can share my github ...
0
votes
1
answer
87
views
Node.js Express application not logging MongoDB connection status
I'm developing a Node.js Express application that connects to a MongoDB database. Despite implementing logging in my code, the application does not log anything related to the MongoDB database ...
0
votes
0
answers
61
views
Node.js failed to connect to postgres server
I'm trying to connect to my postgres (v16.3) database using a nodejs app (v20.15.0), both running locally but it throws an error.
import pg from 'pg';
const db = new pg.Client({
user: "...
0
votes
1
answer
22
views
How to install ibm_db nodejs package for MAC M1/M2chips?
I had trouble installing ibm_db package using node v20.
I have noticed we need x64 version of nodejs instead of arm64,
-1
votes
0
answers
29
views
Handles authentication for users
Recently I've been working on user authentication. I have a few questions like this and hope someone can help me.
When I register successfully, I send an email to the user with a link to confirm. What ...