import gql from 'graphql-tag'

export default gql`
query MobilizationsGadget ($offset: Int, $limit: Int, $orderBy: [UserMobilizationsOrderBy!]) {
  allUserMobilizations  (offset: $offset, first: $limit, orderBy: $orderBy) {
    nodes {
      id
      name
      status
      community {
        name
      }
      score
    }
    totalCount
  }
}
`

import gql from 'graphql-tag'

export default gql`
query MobilizationsGadget ($offset: Int, $limit: Int, $orderBy: [UserMobilizationsOrderBy!]) {
  allUserMobilizations  (offset: $offset, first: $limit, orderBy: $orderBy) {
    nodes {
      id
      name
      status
      community {
        name
      }
      score
      image: facebookShareImage
    }
    totalCount
  }
}
`

bring the mobilization image on query