Closed RomanTcv closed 6 years ago
I have a query value.
Query<Student> query = mStudentBox.query().contains(Student_.name, searchText).build(); query.subscribe().on(AndroidScheduler.mainThread()).observer(new DataObserver<List<Student>>() { @Override public void onData(List<Student> data) { ...... } });
But i don't need List, i need a single value, like this:
Query<Student> query = mStudentBox.query().contains(Student_.name, searchText).build(); query.findFirst();
How i can do this ? How i can subscribe on this query ? I didn't find the solution. Thank you for your time
I have a query value.
But i don't need List
How i can do this ? How i can subscribe on this query ? I didn't find the solution. Thank you for your time