The first API request will only return 100 tags. The second will return over 100 tags, but will include many tag documents that have no fields besides _id.
MERS uses a default row limit of 100 on API queries. See this row in MERS. This is can be overridden by adding ?limit=1000 to an API query.
for some reason, tags with no text or type information were being loaded
into mongo. Not sure how they got in, but adding required: true to each field
in the Mongoose Tag Schema fixed the problem.
Fixes two bugs. To view the bugs, compare:
with
The first API request will only return 100 tags. The second will return over 100 tags, but will include many tag documents that have no fields besides
_id
.?limit=1000
to an API query.required: true
to each field in the Mongoose Tag Schema fixed the problem.