We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An example can be found on the main doc page (https://marshmallow-sqlalchemy.readthedocs.io/en/latest/)
author = Author(name="Chuck Paluhniuk") author_schema = AuthorSchema() book = Book(title="Fight Club", author=author) session.add(author) session.add(book) session.commit() dump_data = author_schema.dump(author) print(dump_data) # {'id': 1, 'name': 'Chuck Paluhniuk', 'books': [1]}
Note that books comes out as a list, and only the book id is in the list.
books
I'd like to expand one of these relationships when serializing, so that the entire book object appears in the list instead.
Can this be done with marshmallow-sqlalchemy? I can't seem to find a way.
Thank you!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
An example can be found on the main doc page (https://marshmallow-sqlalchemy.readthedocs.io/en/latest/)
Note that
books
comes out as a list, and only the book id is in the list.I'd like to expand one of these relationships when serializing, so that the entire book object appears in the list instead.
Can this be done with marshmallow-sqlalchemy? I can't seem to find a way.
Thank you!
The text was updated successfully, but these errors were encountered: