query PaginateFormulations(
  $first: Limit,
  $after: Cursor,
  $last: Limit,
  $before: Cursor,
  $filter: FormulationFilter,
  $orderBy: FormulationOrderBy
) {
  formulations(
    first: $first,
    after: $after,
    last: $last,
    before: $before,
    filter: $filter,
    orderBy: $orderBy
  ) {
    edges {
      node {
        ...PaginatedFormulation
      }
    }
    pageInfo {
      ...FullPageInfo
    }
    totalCount
  }
}

fragment PaginatedFormulation on Formulation {
  id
  name
  displayName
  createdAt
  lastSpecifiedAt
  specifications(last: 0) {
    totalCount
  }
}
