I was using ObjectBox for storing data. But how to update the same data. In documentation, it says it will update the data. But When I pass an old note with some new details, it create new note.
Future<int> createNotes(Note note) async {
var store = await BoxStore.getStore();
var box = store.box<Note>();
int id = box.put(note);
print('note id: $id');
store.close();
return id;
}
Thanks