Hi, Is there a way to avoid inserting the data into session while using Marshmallow - sqlalchemy
sqlalchemy marshmallow avoid loading into session Ref: https://marshmallow-sqlalchemy.readthedocs.org/en/latest/ Because we tried to manage the objects by ourself. Will add into the session if required , but for validation I need to use load () Please advice. Thanks for your help author = Author(name='Chuck Paluhniuk')book = Book(title='Fight Club', author=author)session.add(author)session.add(book)session.commit() author_schema.dump(author).data# {'books': [123], 'id': 321, 'name': 'Chuck Paluhniuk'} author_schema.load(dump_data, session=session).data# <Author(name='Chuck Paluhniuk')> -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
