I noticed that $site->someField()->toStructure() returns an instance of Structure that extends Collection and therefore has the method filter(). However, I can’t find any documentation regarding usage. There are no docs for the Structure class and no docs for Collection either. Can’t find them in the docs sidebar, the docs search bar, in Google…
I’ve noticed similar missing docs before. Perhaps the docs page should have all classes and their methods and link any methods they have extended. For example, Collection->filter() links to $pages->filter(). Would save a lot of time!