// StoreMongoMiddleware allows to setup MongoDB database
StoreMongoMiddleware allows to setup MongoDB database
// StoreMongoMiddleware allows to setup MongoDB database
func StoreMongoMiddleware(db *mongo.Database) gin.HandlerFunc {
	return func(c *gin.Context) {
		store.ToContext(c, mongodb.New(c, db, "lumen"))
		c.Next()
	}
}
func StoreMongoMiddleware ( db * mongo . Database ) gin . HandlerFunc { return func ( c * gin . Context ) { store . ToContext ( c , mongodb . New ( c , db , " " ) ) c . Next ( ) } }
StoreMongoMiddleware allows to setup MongoDB database
StoreMongoMiddleware allows to setup MongoDB database
//fmt.Println("Store mongo middleware:", db, config.GetString(c, "mongo_db_name"), c, models.OrganizationsCollection) //store.ToContext(c, mongodb.New(db, config.GetString(c, "mongo_db_name"), c))