Skip to content

Document references / cross-collection population #74

@wbrickner

Description

@wbrickner

Ever intrepid, I am attempting to use Wither in production (😄 ).

I'm familiar with NodeJS's Mongoose, in which you can define models like (pseudocode)

Product {
  creator { type: ObjectId, reference:  "User" }
}

Later, you can run a query, the result of which is either a product or a list of products, etc., and you can .populate("creator"), which transforms the creator field from an ObjectId into a proper document from the Users collection.

This seems tricky in the Rust type system, but I am hoping this feature is available.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions