github mongomock/mongomock 4.1.2

latest release: 4.1.3
22 months ago

Full support (CI) of Python 3.10 and MongoDB v5.

  • Add support for partialFilterExpression to create_index (#784)
  • Handle $ in update operations when it is the last field. (#787)
  • Drop system collections on drop_database calls. (#788)
  • Add support for "number" alias in $type (#757)
  • Allow system vars expressions to generate arrays (#619)
  • Handle $arrayElementAt applied to $filter
  • $pushall $addToSet dollar operand support (#786)
  • Fix handling non existent fields and other errors in arithmetic operators and grouping. (#502)
  • Add support for allow_disk_use (#780)
  • Use class instead of function in patch (#768)
  • Make reading documents more thread safe. #694 (#695)
  • Patch gridfs without using isinstance. (#761)
  • Fix behavior for $type filter on arrays (#756)
  • Fix behavior for $type filter on numeric types (#755)
  • Make find(projection=...) return copies of the values (#753)
  • Add $not as a logic operator (#716)
  • Implement $map operator (#738)
  • Fix aggregation failing if index does not exists, added test (#646)
  • Sublist candidate handling update (#676)
  • Make distinct() work with arrays of dicts (#751)
  • Add let and array_filters args for update_ methods
  • Create the list_collections method on Database
  • Keep a client's server info consistent
  • Get the server info from an env var
  • Keep the server_info value in sync with the CI

Don't miss a new mongomock release

NewReleases is sending notifications on new releases.