wrong way
const updatedData = await UserModel.findOneAndUpdate(
{ _id: userId, datas: { $elemMatch: { dataId: dataId } } },
{
$set: { "datas.$": dateToUpdate },
},
);
right way
wrong way
const updatedData = await UserModel.findOneAndUpdate(
{ _id: userId, datas: { $elemMatch: { dataId: dataId } } },
{
$set: { "datas.$": dateToUpdate },
},
);
right way
(personal investiment thread)
↳ Ítalo S. : Melhores investimentos que você fez em você?
↳ sibelius :
O intuito das mentorias é retribuir um pouco para comunidade o que eu recebi enquanto iniciante e também mentorada 💜
JavaScript
(front-end, back-end e devOps);let i: any;
const usersArray: any = [];
for (i in getData) {
//@ts-ignore
usersArray.push(`${usersArray[i]}`);
}
console.log('users', usersArray);
useEffect(() => {
console.log(inquiryContext.assignedBy.name);
}, [inquiryContext.assignedBy.name]);}
1 - git status
2 - git stash clear
3 - git stash
4 - git checkout master
5 - git pull
NOTE: this roadmap is focused on web development beginners!
notas sobre https://fs.blog/advice-for-young-scientists/ e @sibelius conselhos
by @sibelius