[doc] repository methode has to return the query

Perhaps I missed somethings but for me it look like we should return the query.