Can I set queryBuider for Backendless login method?

Hey…
In Users table I have person_id column that is related to person table( 1:1 relation),
so when user loggedin i need to get its person info. I’m trying to get rid of auto load, and use set queryBuilder.related(“person_id”) ,but this will only work when using .findById() or find() as i know.

Is there any way to get person without auto load ?

I do have an expected solution, I can login and get loggedIn user’s object id and then find person where ownerId=user.objectid.
but is it a clean code?

Hello, @adel_kasno.
You can load relations in afterLogin event handler in business logic

Regards, Nikita.

But how to load the relation?
I’m stuck in the same problem

@adel_kasno, we have an article on this topic:
https://backendless.com/docs/android/data_two_step_retrieval.html