Is possible to dump a query made on a twig template for a statement like this one for example:
Can we some how see the actual SQL query ?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.Sign up to join this community
You can see each SQL query that is run for a page by turning devMode on and opening your console to read the 'Profiling Summary Report'.
You can see a total query count and each query beings with
I'd advise maybe isolating the twig code on its own template to avoid having to work out which query was a result of the twig code you're after.