Implement method getFirst on queryRepository to allow getting the first
value of a result easier and safer for the developer