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

190
Views
¿Cómo poner datos (múltiples líneas y columnas) en una colección?

Estoy construyendo una base de datos, estoy tratando de poner todas las filas y columnas en una colección llamada (Tarea) para que sea más fácil buscarlas más tarde, pero no funciona.

cuando escribo {Sector: String} Junto a {Name: String} No funciona, me obliga a hacer otro cobro. ¿Cómo se puede solucionar este problema?

 <!--ejs file:--> <!--add a task--> <form action="/create" method="POST"> <input type="text" name="Name"> <button type="submit" class="btn btn-link">Link</button> </form><br> <!--JS file:--> app.set("view engine", "ejs"); app.use(express.urlencoded({extended: true})); mongoose.connect('mongodb://localhost:27017/Investors'); const schema = new mongoose.Schema({Name: String}); const Task = mongoose.model("Task", schema); //insert app.post("/create", (req, res) => { const firstTask = new Task({Name: req.body.Name}); firstTask.save().then(() => res.redirect("/")); });
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!