fix (template api) : include lodash in the mongoose condition