Okay, I just tried to use the cloud() Model function and I think I identified a bug when I read the source code.
On line 1610 of the Model class, the map function (js string) is formatted with the "field" parameter with %s, two times, but at the end of the function, there is still "emit(this.tags[index], 1)"
I don't think this is normal, at least, it's useless to provide a field parameter and not using it in the end.
In my opinion, it should look like "emit(this.%s[index], 1)".
Okay, I just tried to use the cloud() Model function and I think I identified a bug when I read the source code. On line 1610 of the Model class, the map function (js string) is formatted with the "field" parameter with %s, two times, but at the end of the function, there is still "emit(this.tags[index], 1)"
I don't think this is normal, at least, it's useless to provide a field parameter and not using it in the end.
In my opinion, it should look like "emit(this.%s[index], 1)".