Is it possible to return the aggregate > count...
# orm-help
t
Is it possible to return the aggregate > count in graphcool framework? I'm trying to do:
Copy code
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
Have a look here: https://www.howtographql.com/graphql-js/8-filtering-pagination-and-sorting/ under "Returning the total amount of Link elements"
👍 1