xxxxxxxxxx
function display()
{
realm.write(() => {
let q = realm.objects("Book");
q[0].title="HELLO UNIVERSE";
});
console.log(realm.objects("Book"));
}
xxxxxxxxxx
function updateNote(habitId, year, month, day)
{
realm.write(() => {
const notes = realm.objects("Note").filtered("habitId==$0 && year==$1 && day==$2", habitId, year, month, day);
notes.text = "the updated note text";
});