Skip to content

Asynchronous getters/setters #2571

@njoyard

Description

@njoyard

Hello,

Is there a way to implement asynchronous getters with mongoose ?

I'm having a hard time populating DBrefs in a tree-like structure (where documents contain a plain tree of arbitrary depth, where some nodes have a DBref as a property), and I figured out I could use asynchronous getters (if they existed) to manually populate those without having to call .populate() with all possible nested DBref paths...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions