Is there a way to run Query Loop on menus?

I created a menu in Appearance > Menus. I want to show menus and sub-menus in the form of a nestable accordion in a page.

How can I run query on menus?

1 Like