Modeling relationships in SQLAlchemy to show nested “sets” with Marshmallow
问题 I'm trying to figure out how to model (flask-)SQLAlchemy and (flask-)Marshamallow to provide the following JSON output. The parent is a product and the children are "variant sets"... which are types of options, like "color" or "size". Nested within those sets I want the options themselves (S, M, L, etc.) Seems like I'm missing something obvious. Desired output: { "skuid": "B1234", "name": "Test Product 1", "variant_sets": [ { "variant_set": "B1234_1", "variants": [ { "code": "S", "variant