'Why Strapi bring limit data for relations?
I am using graphQl with Strapi, I have one question table and one question-option table, and I write a query to bring data for me by relation. All things working correctly except those questions that have more than 10 options. it just brings 10 options not more.
My query:
query {
questions(filters: {for: {contains: "owner"}}) {
data {
id
attributes {
number
mode
for
description
title
question_options {
data {
id
attributes {
option
score
status
}
}
}
style_template {
... on ComponentQuestionerImageWithTitleColor {
imageType
color
image {
data {
attributes {
url
}
}
}
}
}
}
}
}
}
Solution 1:[1]
It's the default configuration when you're retrieving items, you need to have pagination implemented for more than 10 items as mentioned here,
documents(pagination: { start: 20, limit: 30 }) {
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sajeetharan |

