Example #1
0
    def create(self, product: Product):
        """Add a given product to database"""

        self.collection.insert_one(product.dict())