-
-
Notifications
You must be signed in to change notification settings - Fork 56
Introduce helpers to construct raw query string for FK data fetching with serializable class #965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
I know that specifying columns currently isn't ideal especially with FKs, thats why I introduced #769, but to have somewhat of consistency between client libs I'm still waiting for implementations in other client libs. But great work, #769 has a more general approach for solving the columns problem via a KSP plugin cc @grdsdev |
Interesting. I also tried KSP at the beginning but it took me too much time for general approach so I ended up just build helper functions 😂. |
Sure, I can publish a version. You can try |
What kind of change does this PR introduce?
Introduce helpers to construct raw query string for FK data fetching with serializable class
What is the current behavior?
Currently, when query data with foreign keys, we need to define a hardcoded string. For query that has one FK and multiple FK, they are different in format
DTO
class changes, the related query has to be changed accordingly, now it is done manuallyWhat is the new behavior?
Introduce helpers to construct raw query string with serializable classes
DTO class
can be used to construct query and decode dataFor example: