Would it be possible to add a "select distinct" route instead of needing to filter the results after the query ?