scottwrobinson / camo

A class-based ES6 ODM for Mongo-like databases.
556 stars 80 forks source link

[Question] Can you model relationships using Camo? #94

Closed TheHandsomeCoder closed 7 years ago

TheHandsomeCoder commented 7 years ago

For example you could have a Type Team which could have an array property of Type Player

I've looked through the docs and through some examples, but I haven't been able to find an answer

scottwrobinson commented 7 years ago

Hi there! Yep, you can do this. Unfortunately the README doesn't show off all of Camo's features. There are some great examples in some of the tests though.

Here is one specific example.

Let me know if you have any other questions or if we can close the issue. Thanks!

TheHandsomeCoder commented 7 years ago

Yup this is exactly what I was looking for :) cheers