join or preload
#2698
Replies: 2 comments 8 replies
-
How do you print the SQL? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I try to print out sql in this way:
So the console.log print out
I don't see the sql doing table join. Also, I am looking a way to have sql log print out all the time.
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the followings 2 methods(join/preload) to get my books data.
I prefer to use method 2 (preload), but I not sure how underneath data work.
I print out the sql, but it only show one select. Not seeing table join.
Method 1: Join table
Method 2: preload
Book Model
Beta Was this translation helpful? Give feedback.
All reactions