I am migrating my existing project's database from SQLite to Realm. So there is a way to print Query like we can get/print in SQLite.
SQL Query:
select * from Patient where "revision=8" and (long_description like="%bone%" or code like="%bone%") order by code
My Realm Query:
realm.where(Patient.class)
.equalTo("revision", "8")
.and()
.beginGroup()
.like("long_description", "*bone*").or()
.like("code", "*bone*")
.endGroup()
.sort("code");