import { gql } from '@urql/core'

export default gql`
  query TopOverallShoutsQuery($limit: Int!, $offset: Int!) {
    topOverall(limit: $limit, offset: $offset) {
      _id: slug
      title
      subtitle
      slug
      layout
      cover
      # community
      mainTopic
      topics {
        title
        body
        slug
        stat {
          _id: shouts
          shouts
          authors
          followers
        }
      }
      authors {
        _id: slug
        name
        slug
        userpic
      }
      createdAt
      publishedAt
      stat {
        _id: viewed
        viewed
        reacted
        rating
      }
    }
  }
`
