0

I have an existing database, and if I define a new bool hide_in_main_screen = false; property in my objectbox class, and I query it like Store.box<TM>().query(TM_.hide_in_main_screen.equals(false)).build().find(), I got 0 items. If I query the whole table I see that this property value is false.

Why I don't get the items, and how can I solve this problem?

Ebadta
  • 317
  • 1
  • 3
  • 10

1 Answers1

0

Based on this objectbox issue information, I created a db migration routine and filled the new properties with default values.

Ebadta
  • 317
  • 1
  • 3
  • 10