pub async fn get_all_instances( query: &RealmQueryProxy, ) -> Result<Vec<Instance>, GetAllInstancesError>