Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

225
Views
how to insert data in this type of schema through express js?

This is my schema. But I'm not able to insert data to bicepsExcercise image Please help me with Controllers to add some data in Biceps Excercise. When I try to insert the Data directly by accessing excercise nothing happens. I want to insert data in bicepsExcercise and in Image field

const mongoose = require('mongoose')

const DataModel = new mongoose.Schema({
    excercise: [{
        bicepsExerciseImage: {
            image: {
                type: String
            },
            bicepsExercise: {
                type: {
                    type: String
                },
                name: {
                    type: String,
                },
                videoUrl: {
                    type: String,
                },
                time: {
                    type: String,
                    default: "Null"
                },
                image: {
                    type: String,
                }
            },
        }
    }]
})

module.exports = mongoose.model('DataModels', DataModel)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!