This PR makes some minor changes/improvements that were done as part of a bigger effort to refactor the way the fields array is generated on layer info and query routes. The changes here are independent of that refactor, thus separating them out to reduce file count and scope of upcoming PR. Changes include:
swapping poorly chosen array methods identified by linter; e.g., a .filter which really should be a .forEach.
proper handling/wrapping of statistics aggregations from winnow
This PR makes some minor changes/improvements that were done as part of a bigger effort to refactor the way the
fields
array is generated on layer info and query routes. The changes here are independent of that refactor, thus separating them out to reduce file count and scope of upcoming PR. Changes include:.filter
which really should be a.forEach
.