All Questions
Tagged with database javascript
4,768
questions
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;
...
-2
votes
0
answers
25
views
How to insert script code in php code in script code again [duplicate]
hello Can some one solve my bizzare code, I wrote code then I put a php code inside function variable, and in that function I adding again code inside php,
it means Script code in php code in script ...
0
votes
0
answers
11
views
How to get raw json or other data for onecall ticket [closed]
I am trying to get the data that populates the ticket here: https://ia.itic.occinc.com/iarecApp/ticketSearchAndStatusView.jsp?enc=%2B%2FG1BMVDAKGJSwm2QiSowfk5NrkGvXR9ZW9t6AwXqmv0wkQXl%2FZjXxhBxVIJbBZH
...
0
votes
1
answer
38
views
How to Display Item Quantity Based on Product Selection in Laravel 11?
How to display the quantity of items from the 'item_amount' column when a product name is selected from the 'item_name' selector in Laravel 11, based on the data in the database?
Database
id
...
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 ...
1
vote
1
answer
43
views
TypeOrm QueryBuilder add a new field if a relation was exist
this is my products entity:
@Entity()
export class Products {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@Column()
code: string;
@Column({
...
0
votes
0
answers
14
views
postgres not working using docker gives error password authentication failed for user "pari"
hey i am trying to create a local postgres db using docker but i am not able to connect to it
docker run -e POSTGRES_PASSWORD=my -e POSTGRES_USER=pari -d -p 5432:5432 postgres
...
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 ...
0
votes
0
answers
34
views
Need a way for upload content on my site from a form
I'm just getting into java and php and so I looked for something online and I helped myself with AI to create something that worked, so I apologize in advance if I don't understand something and if I ...
-1
votes
0
answers
19
views
I'm trying to create a validation rule for an existing collection but I'm getting an error
I had the below error
JSON field 'collMod.validator' is the wrong type 'string', expected
type 'object'
This is my code
db.runCommand({
collMod: "SignUp",
validator: {
$jsonSchema: ...
0
votes
0
answers
27
views
Correct way to access database when working with multiple JS files
JavaScript and PostgreSQL.
class User {
constructor(username, password, company_id, acclevel) {
this.username = username;
this.company_id = company_id;
this.acclevel = acclevel;
this....
-4
votes
0
answers
49
views
How to add a Search function using JS and Googlesheet as database
How am I gonna add a search function using JS and GoogleSheet as a database?
what code am I expect to write to integrate the search system, what codes of appscript, js is needed. I already have the ...