e>
<p>You could model Ethereum block data like so:</p>
<pre><code class="language-graphql">type Block {
    id: ID!
    number: Int!
    hash: String!
    parent: Block
    transactionsRoot: String!
    transactionCount: Int!
    stateRoot: String!
    gasLimit: String!
    gasUsed: String!
    timestamp: Date!
    transactions: [Transaction!]! @relation(name: &quot;Block:transactions::Transaction:block&quot;)
}

type Transaction {
    id: ID!
    hash: String!
    index: Int!
    from: String!
    to: Stri