Use Object.keys to get the template array
Fixed the linkded field filtering

I chose to fetch the full collection items and then to filter them. The
items that are not matching by the query are nullified and NOT pushed in
the final array response.

The final array is sliced using skip and limit parameters sent via request.