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

Populating references #17

Open
tmld opened this issue May 21, 2015 · 1 comment
Open

Populating references #17

tmld opened this issue May 21, 2015 · 1 comment

Comments

@tmld
Copy link

tmld commented May 21, 2015

Is there a way to get the tree structure with ObjectId references populated?

E.g. Lets say I have a tree structure like the simplified structure below, where the users being stored as ObjectId references:

{
    title: "Clean House",
    users: ["Bob", "Sam"],
    children: [
        {
            title: "Clean Kitchen",
            users: ["Bob", "Sam"],
            children: [
                {
                    title: "Clean Oven",
                    users: ["Bob"]
                },
                {
                    title: "Clean Sink",
                    users: ["Sam"]
                }
            ]
        }
    ]
}

Is it possible for the results of getArrayTree to contain the populated users, instead of their ObjectId's?

@burakkilic
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants