Home > front end >  CheckBox CheckBox how to pass the value to mongo ah??????
CheckBox CheckBox how to pass the value to mongo ah??????

Time:09-25

Idea is to want to save a movie, the movie has a lot of labels, check the label the CheckBox, and then post to submit to background save to mongo,

CodePudding user response:

The desired effect is: click the CheckBox, deposited in the category {name the array []}  .

CodePudding user response:

Is correct is: click the CheckBox, deposited in the category [] array inside

Category: [ObjectId] the ObjectId inside is the id tag, post code is written, but not put into the category, the console print is empty, no deposit
  • Related