Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add support for Polymorphism #10
We need to add support for polymorphism - That is to say storing multiple types within a single collection. e.g. The classic example of Shape, and then multiple classes which extend it for different types of shape.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I know this is your project, and I'm just commenting on it, but this is for anyone who comes through here and is looking for similar information:
This is what I am doing for certain types of things that are getting stored; I simply have a property in the document named 'type' which further distinguishes what the object is (for when it's queried out of the DB).
There's also the collection() method..which I just now noticed. -.-