Describe the bug
PyMongo and Motor allow us to send a flag unordered=False that makes it possible to run the bulk write for all operations even if one of them fails. This flag is currently not available on beanie.
To Reproduce
async with BulkWriter() as bulk_writer:
await duplicated_doc.insert(bulk_writer=bulk_writer)
await doc.save_changes(bulk_writer=bulk_writer)
Expected behavior
The doc.save_changes operation should succeed and the duplicated_doc.insert should fail. The doc should be updated in the database.
Describe the bug PyMongo and Motor allow us to send a flag
unordered=False
that makes it possible to run the bulk write for all operations even if one of them fails. This flag is currently not available on beanie.To Reproduce
Expected behavior The
doc.save_changes
operation should succeed and theduplicated_doc.insert
should fail. The doc should be updated in the database.