i am still new in node js, and i am trying to make some backend with file upload/ image upload function that can be stored in sql, i am trying using multer but it cant read my file while testing ...
databaseanswers.net Latest Questions
I have following data in my mongodb database , how can I write a mongoose query to select a particular object from "cartItems" which is a array of objects and update its "qty" and "price" filed. Here’s the data:- { ...
I’m creating a MySQL database and I want to insert about 1000 records that are structured in a JSON array This is the JSON array that I’m importing: [ { "DESCRIPTION": "انفرتر 1 حصان أحادي", ...
I want to create a username from the user’s email, first name, and the last name entered. I am using NodeJs and Sequelize. I want to make it unique by continuously checking the database. How can I achieve this?
I want to make an web app where user able to upload to upload. So how can i make the api where the video will be stored in mongodb.
app.post('/templates/views/login', async(req,res) => { try { const em = req.body.email; const pass = req.body.pw; const useremail = await db.Register.findOne({ ...
Suppose you have two mongoose schemas: Meal and Ingredient. Meal const mealSchema = new mongoose.Schema({ title: { type: String }, ingredients: [{ ingredient: { type: mongoose.Types.ObjectId, required: true, ref: ...
I’m trying to delete a row in an SQL table from an input on a React front end. Previously I has been successful in this but I’ve recently updated the columns in the table and haven’t been able to recreate ...
const mongoose = require("mongoose"); const expirationTime=10 let currentTime = Date.now(); const userSchema = new mongoose.Schema( { fullName: { type: String, required: false, }, ...
I am facing with an error which I am unable to resolve it. I want to use query search to search if the data of 1 job matches with user data but I am stucked in some cases. First case ...