I have tried to modify data statically using this code:-
const upDateMonster = async() => {
const MonsterCreature = Moralis.Object.extend('Monsters');
const query = new Moralis.Query(MonsterCreature);
query.equalTo("x", 4);
const monster = await query.first();
monster.set("x", 1337);
monster.save();
console.log(monster);
return monster;
}
And It worked fine but needs to add data dynamically.
However, I’m creating a crud app using the react+moralis database so I want to edit data dynamically using form hence any help, please!
Thank you