I'm try to run queries to AWS AppSync to fetch all list of Todos which I got around 50 items in DynamonDB but the result only return 20 items in my web, is there any limitation for AppSync?
I used amplify library to run the query:
API.graphql(
graphqlOperation(queries.listTodos)
)
How could I get all the 50 items from my dynamoDB?
Query:
export const listTodos = `query ListTodos(
$filter: TableTodoFilterInput
$limit: Int
$nextToken: String
) {
listTodos(filter: $filter, limit: $limit, nextToken: $nextToken) {
items {
id
dateIn
dateOut
reservedBy
status
ttl
createdON
}
nextToken
}
}
`;
Sample data:
"items": [
{
"id": "ad2ce180-eae4-4bbd-abbc-00375e2dabd9",
"dateIn": "2019-03-13",
"dateOut": "2019-03-16",
"reservedBy": "Harith",
"status": "Pending Payment",
"ttl": 1552357596,
"createdON": "2019-03-11T02:26:36.608Z"
},