Number of Bitcoin Blocks & Average Blocksize

Hey community,

First of all, I need to say I am entirely new to GraphQL, so please be patient with me :slight_smile:

I am looking for the following a queries:

1. Number of Bitcoin Blocks:

I used the following query, which seems to work:

query {
  bitcoin {
    blocks {
      date {
        year
        month
      }
      count
    }
  }
}

However, I have no clue how to perform the query for the following:

2. Average Bitcoin Block Size:

query {
  bitcoin {
    blocks {
      date {
        year
        month
      }
      blockSize
    }
  }
}

The query above seems to get the blocksize for all Bitcoin blocks. But I only want to get the average Blocksize of each year/month pair.

I tried to perform an aggregation. However, the blockSize field doesnโ€™t seem to have the parameter calculate.

I would appreciate your help.

Thank you

What are you trying to do? There is a schema on the right hand side