website icon indicating copy to clipboard operation
website copied to clipboard

Is there a way of querying only specific attributes using findByPK method ?

Open udithv opened this issue 3 years ago • 1 comments

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.

udithv avatar Jun 23 '22 05:06 udithv

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

ephys avatar Jun 23 '22 06:06 ephys