github.com/opiuman/genqlient@v1.0.0/generate/testdata/queries/Flatten.graphql (about)

     1  # @genqlient(flatten: true)
     2  fragment QueryFragment on Query {
     3    ...InnerQueryFragment
     4  }
     5  
     6  fragment InnerQueryFragment on Query {
     7    # @genqlient(flatten: true)
     8    randomVideo {
     9      ...VideoFields
    10    }
    11    # @genqlient(flatten: true)
    12    randomItem {
    13      ...ContentFields
    14    }
    15    # @genqlient(flatten: true)
    16    otherVideo: randomVideo {
    17      ...ContentFields
    18    }
    19  }
    20  
    21  fragment VideoFields on Video {
    22    id
    23    parent {
    24      # @genqlient(flatten: true)
    25      videoChildren {
    26        ...ChildVideoFields
    27      }
    28    }
    29  }
    30  
    31  fragment ChildVideoFields on Video {
    32    id name
    33  }
    34  
    35  fragment ContentFields on Content {
    36    name url
    37  }
    38  
    39  # @genqlient(flatten: true)
    40  query ComplexNamedFragments {
    41    ...QueryFragment
    42  }