docs($filter): add runnable example

Closes #6871