Closed Purfakt closed 1 year ago
@roman-right Hey Roman, really cool library, thanks for all the hard work on this. Just curious, any thoughts as to when this issues will be fixed? Thanks a bunch!
Hey @dave4jr , This particular issue will take time to solve, bc it is related to MongoDB limitations. So, it is hard to predict, as I don't have a good solution even in theory. In general, I'm focused on another one open source project right now. I plan to publish it next week and get back to Beanie's issues after.
This issue is stale because it has been open 30 days with no activity.
This issue was closed because it has been stalled for 14 days with no activity.
What doesn't work
As per the documentation, only top level Links are fully supported in beanie. This means nested linking doesn't work properly. The following doesn't work:
A
andB
are documents.A
has a list ofC
andC
contains aLink[B]
.Expected behaviour
In MongoDB, I would expect to see a list of
C
containingDBRefs
ofB
inside of the documentA
Current behavious
In MongoDB,
A
has a list ofC
, butC
contains full copies ofB
.Reproducible example
This example contains something similar to my faulty code.