diff --git a/src/dsdk/mongo.py b/src/dsdk/mongo.py index fba6fd7..83d34d7 100644 --- a/src/dsdk/mongo.py +++ b/src/dsdk/mongo.py @@ -234,7 +234,7 @@ def insert_many(collection: Collection, docs: Sequence[Dict[str, Any]]): INSERT_MANY, collection.database.name, collection.name, - len(result.inserted.ids), + len(result.inserted_ids), ) return result