Retreive Monday Workdoc blocks from a doc that is stored in a board's column

Hi there,

I want to develop an app for monday.com, and would like to get read the content of workdocs that are stored in a board.

I can get the id off all my docs via:

query {
  docs {
    id
    name
  }
}

Then read the blocks of the desired doc via:

query {
  docs (ids:1234567) {
    blocks {
      id
      type
      content
    }
  }
}

But this only works for “regular” Workdocs. It doesn’t work with Workdocs that are stored in a board with a column type “monday Doc”:

There is a section about reading the monday doc column, but I’m struggling to understand how to read the content (the blocks) of a Workdoc stored in a column.

Also, if I click on the doc icon in the item’s monday Doc column, it opens the doc editor, and I can see an URL like:

So, there is a specific doc id. Why does the api not return this id when I query for ALL docs?

Thanks in advance!