// RemoveServiceFromGroup remove service from application group
RemoveServiceFromGroup remove service from application group
// RemoveServiceFromGroup remove service from application group
func (agmr *AppGroupMongoRepository) RemoveServiceFromGroup(appGroupID string, serviceID string) error {
	serviceGroupIDHex := bson.ObjectIdHex(appGroupID)
	serviceIDHx := bson.ObjectIdHex(serviceID)
	removeFromAllGroups := bson.M{"$pull": bson.M{"services": serviceIDHx}}
	return agmr.Collection.UpdateId(serviceGroupIDHex, removeFromAllGroups)
}
func ( agmr * AppGroupMongoRepository ) RemoveServiceFromGroup ( appGroupID string , serviceID string ) error { serviceGroupIDHex := bson . ObjectIdHex ( appGroupID ) serviceIDHx := bson . ObjectIdHex ( serviceID ) removeFromAllGroups := bson . M { " " : bson . M { " " : serviceIDHx } } return agmr . Collection . UpdateId ( serviceGroupIDHex , removeFromAllGroups ) }
RemoveServiceFromGroup remove service from application group
RemoveServiceFromGroup remove service from application group