title: why I cannot fetch related fields on my prisma query with my GO client?
body: <p>I am very very new in Prisma but so far I managed to do queries and map it using graphql, but then I noticed that I was not fetching the whole information.</p>
  
  <p>Here is what I have.</p>
  
  <p>I have a table called Highlight</p>
  
  <p>The table has a relation to HighlightItems  (that is a wrapper to fetch a postId, number of votes , etc, etc)</p>
  
  <p>so I mapped my prisma objects and seem to be working...</p>
  
  <p>I have this in my datamodel.prisma</p>
  
  <pre><code>type Highlight {
      id: UUID! @id
      highlightId: String! @unique
      createdAt: DateTime! @createdAt
      updatedAt: DateTime! @updatedAt
      highlightItems: [HighlightItem!]! 
        @relation(
          link: TABLE
          name: "HighlightItemByHighlight"
          onDelete: CASCADE
        )
  </code></pre>
  
  <p>and at my HighlightItem</p>
  
  <pre><code>type HighlightItem {
      id: UUID! @id
      createdAt: DateTime! @createdAt
      updatedAt: DateTime! @updatedAt
      lastComment: String ....
  </code></pre>
  
  <p>I was able to generate the prisma model and use the generated mutations:</p>
  
  <pre><code>mutation {
    createHighlight(....
  </code></pre>
  
  <p>and I am able to query directly the prismadb with the queries:</p>
  
  <pre><code>query {
    highlights{
      highlightId, highlightItems{id}
    }
  }
  </code></pre>
  
  <p>Now I have the issue when working with my GO resolver </p>
  
  <p>when I do this:</p>
  
  <pre><code>func (r *queryResolver) Highlights(ctx context.Context, first, last *int, before, after, search *string, input string, input2 string ) (*models.Highlights, error) {
  
  
      allHighligts, err := prisma.Instance.Highlights(
          &amp;prisma.HighlightsParams{
  
          }).Exec(ctx)
         ....
  </code></pre>
  
  <p>Then I realize that I cannot get the <code>HighlightItems</code> <strong>through</strong> Highlight, checked the document on the prisma client for GO and it should use the <code>"fluent API"</code> </p>
  
  <p><a href="https://www.prisma.io/docs/prisma-client/basic-data-access/reading-data-GO-go05/#relations" rel="nofollow noreferrer">https://www.prisma.io/docs/prisma-client/basic-data-access/reading-data-GO-go05/#relations</a></p>
  
  <p>but so far I am not able to fetch them, any idea what Im doing wrong?</p>