How to query layout/blocks with the KQL plugin?

Hi,

Is there a documentation somewhere or code example to learn how to query layout/blocks with the KQL plugin?

In fact, the synthax is similar to what we use for template.

blocks: {
  query: "page('home')",
  select: {
    layoutsJson: "page.layout.toLayouts"
  }
 }

and if you don’t use layout but just blocks

blocks: {
  query: "page('home')",
  select: {
    blocksJson: "page.blocks.toBlocks"
  }
 }