def save_to_mongo(self):
     Database.insert(UserConstants.COLLECTION, self.json())
예제 #2
0
 def save_to_mongo(self):
     Database.insert(collection='posts', data=self.json())
예제 #3
0
 def save_to_mongo(self):
     Database.insert(colletion='blogs', data=self.json())