Using a mixin library without the mixin? Not as crazy as it sounds, honest!
It comes down to needing to do 2 SSM serialization flows and stitch them together. The reason being I need to filter down a related 1 to many to being exactly 1 value (or null). The way i'm doing that is by serializing the main object, using Python to resolve the inner one, serializing that and poking it back in.
Really what I need is a plugin which you give some Q objects, a spec, and whether it's 1 or many, and it to serialize that. Filtered kinda does that, but doesn't do single instances.
Functional decomposition is always good but I think I need to hear a bit more about the use case for exporting this internal mechanism as part of the library’s public API before approving
Using a mixin library without the mixin? Not as crazy as it sounds, honest!
It comes down to needing to do 2 SSM serialization flows and stitch them together. The reason being I need to filter down a related 1 to many to being exactly 1 value (or null). The way i'm doing that is by serializing the main object, using Python to resolve the inner one, serializing that and poking it back in.
Really what I need is a plugin which you give some
Q
objects, a spec, and whether it's 1 or many, and it to serialize that.Filtered
kinda does that, but doesn't do single instances.