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

305
Views
¿Cómo puedo separar mi ObjectID? (usando mongodb especialmente en las relaciones)

ingrese la descripción de la imagen aquí Mi ObjectID se ha separado como en el símbolo del sistema como este

 "tchStudents" : [ ObjectId("616450eeecf687bc5f59fac2"), ObjectId("61645108ecf687bc5f59fac4"), ObjectId("616451a8ecf687bc5f59fac8") ]

pero si buscamos los datos y los mostramos en el navegador, es así

 616450eeecf687bc5f59fac261645108ecf687bc5f59fac4616451a8ecf687bc5f59fac8

¿Puedo usar .split o .slice? Gracias por ayudar.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

usar coincidencia con /.{1,24}/g expresión regular

 let str = "616450eeecf687bc5f59fac261645108ecf687bc5f59fac4616451a8ecf687bc5f59fac8" let arr = str.match(/.{1,24}/g); console.log(arr);

about 4 years ago · Juan Pablo Isaza Report
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!