How to output non-repeating links in query?

Hi everyone! I have to have the note what has a query to non-repeating links inside all notes, in some folder for example. Or something like that. Generally, I need to see non-repeating links of my all notes in some folder.