p>You could model a user with blog posts like so:</p>
<pre><code class="language-graphql">type User {
    id: ID!
    username: String!
    blogPosts: [BlogPost!]! @relation(name: &quot;User:blogPosts::BlogPost:author&quot;)
}

type BlogPost {
    id: ID!
    publishedAt: Date
    title: String!
    author: User! @relation(name: &quot;User:blogPosts::BlogPost:author&quot;)
}
</code></pre>
<p>You could model a family tree like so:</p>
<pre><code class="language-graphql"># TODO this example will not work yet
