Filter option for getAll function

Filter option for getAll function