Damián Caruso
Damián Caruso
This is an extract of what we are using in a internal project. I agree with you in your comments, but before that, do you agree with the public API?....
I don't know if `many` is the right name, I was thinking in `collection` like in ohm, but here collection is a list of ids.
Yes, that's true. But the same would apply to `referenced`, right? It looks like a one-to-one modeling. I would leave that desicion up to the user. You provide different alternatves...
When you say the `id` is persisted in the document itself you talk about `reference` not `referenced`, and that is perfectly fine. With `referenced` you are getting the referencing object...