Skip to content

Graeme Pyle

My feedback

1 result found

  1. 3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Graeme Pyle commented  · 

    The actual problem I'm trying to solve is that I want an array of foreign keys to use in a new query. To get the foreign keys, I run

    _.pluck( db.users.find(...).toArray(), "_id")

    then I use that in an $in query.

    Creating a group aggregation to do this takes too long. Is there a way I can easily copy the contents of a column into an array? That would be awesome.

    Graeme Pyle shared this idea  · 

Feedback and Knowledge Base