Title
t

theom

04/30/2018, 7:51 PM
Is it possible to return the aggregate > count in graphcool framework? I'm trying to do:
query allPostsCommentsQuery {
    allPostses (orderBy: createdAt_ASC) {
      aggregate {
        count
      }
      __typename
      id
      displaysrc
      caption
      likes
      comments (orderBy: createdAt_DESC) {
        __typename
        id
        posts {
          __typename
          id
        }
        text
        user
        deleted
      }
    }
  }
w

WillB

04/30/2018, 8:12 PM
Have a look here: https://www.howtographql.com/graphql-js/8-filtering-pagination-and-sorting/ under "Returning the total amount of Link elements"
👍 1