# @genqlient(flatten: true)
fragment QueryFragment on Query {
  ...InnerQueryFragment
}

fragment InnerQueryFragment on Query {
  # @genqlient(flatten: true)
  randomVideo {
    ...VideoFields
  }
  # @genqlient(flatten: true)
  randomItem {
    ...ContentFields
  }
  # @genqlient(flatten: true)
  otherVideo: randomVideo {
    ...ContentFields
  }
}

fragment VideoFields on Video {
  id
  parent {
    # @genqlient(flatten: true)
    videoChildren {
      ...ChildVideoFields
    }
  }
}

fragment ChildVideoFields on Video {
  id name
}

fragment ContentFields on Content {
  name url
}

# @genqlient(flatten: true)
query ComplexNamedFragments {
  ...QueryFragment
}
