function fetchCategory will get all elements from a category.