marshmallow-jsonapi icon indicating copy to clipboard operation
marshmallow-jsonapi copied to clipboard

Include all data automatically

Open multimeric opened this issue 6 years ago • 0 comments

If I have a series of nested models (from SQLAlchemy, for example), it would be nice to be able to RootSchema(include_data=True).dump(root_model). Currently, you have to spell out each and every relationship you want to include, but it's not inconceivable you might want to dump out the whole relationship tree.

My proposed API for this would be setting include_data to True, rather than passing in an iterable.

multimeric avatar Oct 24 '19 07:10 multimeric