Defined query buider in repository