Closed batpad closed 6 years ago
Started sketching out adding count to the items endpoint: https://github.com/osmlab/to-fix-backend/pull/191 - not sure if this is a great idea
For now, let's stick with the approach of having the separate project stats
end-point and revisit here if we do need counts returned with every get-items
request.
Just wanted to drop in documentation for whenever we want to do this: http://docs.sequelizejs.com/manual/tutorial/models-usage.html - look under
findAndCountAll
cc @emilymdubois