Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Referencing external documents, opposed to embedding. #38

Open

Description

@AlBakerKY

If I want to store document references instead of embedded documents, how would I best achieve that in the repo? For example, I want to have users that can share newspapers..so something like this, where people can keep references to their favorite newspapers.

class Newspaper:Entity { string Name; string Content; Data publishDate} 
class User:Entity { string LastName; List<Newspaper>newspapers; } 

But internally that List should be serialized to store references to newspapers inside user, not content.

How seamlessly can that be accomplished and should I manually be maintaining those references through in my derived repositories?

Should those references be through ObjectIDs or strings?

Thanks for any help.

Al

Activity

  1. RobThree commented on Jul 28, 2016

    @RobThree
    Owner

    Let me know if #15 helps you answer your question.

    As to answer your "How seamlessly"; that depends on what your definition of seamless is I guess 😉

  2. self-assigned this
    on Jul 28, 2016
  3. AlBakerKY commented on Aug 10, 2016

    @AlBakerKY
    Author

    #15 does help, thank you. As far as storing references, should they be strings or objectIDs?

  4. RobThree commented on Aug 13, 2016

    @RobThree
    Owner

    It's up to you; nothing stopping you from using either way 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions