You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But they don't work. It just returns the usual object. I can confirm that in the find methods, they work perfectly.
What was unclear/insufficient/not covered in the documentation
The documentation is mostly clearly on usage, but it just doesn't work. Also, it alludes to using set but the documentation isn't clear and gives no example on usage.
If possible: Provide some suggestion on how we can enhance the docs
Give examples on usage of methods
Issue Template Checklist
Is this issue dialect-specific?
No. This issue is relevant to Sequelize as a whole.
Yes. This issue only applies to the following dialect(s): XXX, YYY, ZZZ
I don't know.
Would you be willing to resolve this issue by submitting a Pull Request?
Yes, I have the time and I know how to start.
Yes, I have the time but I don't know how to start, I would need guidance.
No, I don't have the time, although I believe I could do it if I had the time...
No, I don't have the time and I wouldn't even know how to start.
The text was updated successfully, but these errors were encountered:
zoutiyx
added
the
type: docs
For issues and PRs. Things related to documentation, such as changes in the manuals / API reference.
label
May 17, 2020
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
Issue Description
I have two models Person and Task. The Person and Task model has multiple associations between them as such;
to create this I'd use
const task = await Task.create({/*pairs*/});
How do I eager load task directly after creation?
So instead of receiving;
I get;
I've tried doing
const task = await Task.create({/*pairs*/}, {include: {model: Person, as: 'strikerId'}});
for a single record
AND
const task = await Task.create({/*pairs*/}, {include: [{model: Person, as: 'striker'}, {model: Person, as: 'defender'}]});
But they don't work. It just returns the usual object. I can confirm that in the find methods, they work perfectly.
What was unclear/insufficient/not covered in the documentation
The documentation is mostly clearly on usage, but it just doesn't work. Also, it alludes to using
set
but the documentation isn't clear and gives no example on usage.If possible: Provide some suggestion on how we can enhance the docs
Give examples on usage of methods
Issue Template Checklist
Is this issue dialect-specific?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: