Replies: 2 comments 3 replies
-
Hello, await User.query()
.where("name", "LIKE", "%something%")
.preload("posts", (query) => {
query.where('title', "LIKE", "%something%");
}).paginate(request.input('page', 1),10); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why would you merge the data from Users and Posts into one object? If you are looking for relationships, then @melokki has answered it for you |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
I want to search data with two models
Post
andUser
and want to paginate both result.Beta Was this translation helpful? Give feedback.
All reactions