We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have two model User, Post
User
Post
users have many posts I'm deleting some of user post and after that use this query
const user = await User.where({ id }) .withCount('posts') .firstOrFail()
if I'm console the bundles count it show me count of all bundles of this use not the post deleted_at is null
deleted_at
I think this is happening for loadCount too
loadCount
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have two model
User
,Post
users have many posts
I'm deleting some of user post and after that use this query
if I'm console the bundles count it show me count of all bundles of this use not the post
deleted_at
is nullI think this is happening for
loadCount
tooThe text was updated successfully, but these errors were encountered: