From 8a856acd644dc8a2f9720fd827e24d62f92979f2 Mon Sep 17 00:00:00 2001 From: Noah Witt Date: Sun, 3 Dec 2023 15:22:42 -0600 Subject: [PATCH] Add BSON MaxKey and MinKey (#768) MaxKey and Minkey are BSON types that are primarily used in queries. This merge request updates Beanie to pass through those types correctly. --- beanie/odm/utils/encoder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beanie/odm/utils/encoder.py b/beanie/odm/utils/encoder.py index be7dc096..2316431d 100644 --- a/beanie/odm/utils/encoder.py +++ b/beanie/odm/utils/encoder.py @@ -58,6 +58,8 @@ bson.Binary, bson.DBRef, bson.Decimal128, + bson.MaxKey, + bson.MinKey, bson.ObjectId, )