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
limit with subQuery: false returns missing data #14001
Comments
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
The query data having the "wrong" limit is expected since Column references in |
sorry I wanted to ask if there has been any progress here? |
No progress yet, although it depends on what your issue is:
Since these two issues are the ones centralizing the discussion on this problem, I'll close this issue and redirect the discussion there. |
What are you doing?
I would like to order my query by association's column which is
user
. This isCreative
modelAnd this is the function
If I delete
subQuery = false
, it throws an error saying:Unknown column 'user' in 'order clause'
. If I setsubQuery = true
it works but returns missing data. Let's say I need to see 6 results, but it returns 3 results.What do you expect to happen?
It should output array with 6 records.
What is actually happening?
Here's the query that returns missing data with 3 records while I was waiting 6
Sequelize version: 4.37.10
I have tried with latest version
The text was updated successfully, but these errors were encountered: