website
website copied to clipboard
Is there a way of querying only specific attributes using findByPK method ?
Issue Creation Checklist
[x] I have read the contribution guidelines
Issue Description
What was unclear/insufficient/not covered in the documentation
There isn't a clear description of options for the findByPk function. No clear option to query specific attributes
Write here.
If possible: Provide some suggestion on how we can enhance the docs
Description of all parameters for the function.
It is documented here for v7 https://sequelize.org/api/v7/classes/model#findByPk. v6 is https://sequelize.org/api/v6/class/src/model.js~model#static-method-findByPk but it's much less complete. If someone is willing to open a PR to enhance the jsdoc of that method in the v6 branch, we welcome a PR.
We should also link it from here