Craft query Matrix blocks in twig Is it possible to query elements of type MatrixBlock in Twig like other elements? You can get entries with

{% set entries = craft.entries.all() %} 


Is there something similar available for Matrix blocks?
Yes you can. craft.entries returns an object of type EntryQuery 

There is a function matrixBlocks in the CraftVariable that returns an object of type MatrixBlockQuery 

Both of them have nearly the same functionality  since they extend the ElementQuery

{% set allMatrixBlocks = craft.matrixBlocks.all() %}