Skip to content
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

Add transform to TypeScript PopulateOptions interface #10061

Closed
vkarpov15 opened this issue Mar 24, 2021 · 0 comments
Closed

Add transform to TypeScript PopulateOptions interface #10061

vkarpov15 opened this issue Mar 24, 2021 · 0 comments
Assignees
Labels
typescript Types or Types-test related issue / Pull Request
Milestone

Comments

@vkarpov15
Copy link
Collaborator

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

mongoose/index.d.ts

Lines 1020 to 1038 in 80245ed

interface PopulateOptions {
/** space delimited path(s) to populate */
path: string;
/** fields to select */
select?: any;
/** query conditions to match */
match?: any;
/** optional model to use for population */
model?: string | Model<any>;
/** optional query options like sort, limit, etc */
options?: any;
/** deep populate */
populate?: PopulateOptions | Array<PopulateOptions>;
/**
* If true Mongoose will always set `path` to an array, if false Mongoose will
* always set `path` to a document. Inferred from schema by default.
*/
justOne?: boolean;
}
should have transform?: ...

What is the expected behavior?

Should be able to specify transform as a populate option

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.

5.12.x

@vkarpov15 vkarpov15 added the typescript Types or Types-test related issue / Pull Request label Mar 24, 2021
@vkarpov15 vkarpov15 added this to the 5.12.3 milestone Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

No branches or pull requests

1 participant