I am using React with Strapi and GrapqQL in order to retreive my data from Strapi.
Seems that my query retrieves only maximum 10 items. The API is changed with this new version and I am not allowed to use first:100
in the query.
This link 1 is obsolete. I don't know if this is a policy from Strapi's or GraphQL's new version. 1 https://graphql.org/learn/pagination/
const REVIEWS = gql`
query GetReviews {
reviews (sort: "createdAt:desc") {
data{
id
attributes{
title
rating
body
createdAt
categories{
data{
id
attributes
{
name
}
}
}
}
}
}
}
`