DEV Community

Discussion on: Sorting by Created Date with GraphQL and Prisma

Collapse
 
alhiane profile image
Alhiane Lahcen

hey i have trouble ,

query Posts($page:Int){
  posts: allPost(perPage: 6, page: $page) @paginate{
    totalCount
    pageInfo {
      totalPages
      currentPage
      isFirst
      isLast
    }
    edges {
      node {
        title
        image
        id
        path
        excerpt
        datetime : created(format:"MMM DD YYYY")
        category {
          title
          path
        }
      }
    }
  }
}