question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

listQuery is limited to 10 by default

See original GitHub issue

Describe the bug

The default limit on the list{Model} query is 10, which means that as the table grows as more items are added by different owners - then people lose their items as not returned.

#set( $limit = $util.defaultIfNull($context.args.limit, 10) )
{
  "version": "2017-02-28",
  "operation": "Scan",
  "filter":   #if( $context.args.filter )
$util.transform.toDynamoDBFilterExpression($ctx.args.filter)
  #else
null
  #end,
  "limit": $limit,
  "nextToken":   #if( $context.args.nextToken )
"$context.args.nextToken"
  #else
null
  #end
}

Is there a better way to queryItems by an owner without setting limit to a really high number? If not then this should be documented…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
wizawuzacommented, Mar 19, 2019

@MathiasBerwig I don’t believe you referenced the correct issue.

0reactions
github-actions[bot]commented, Jun 12, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Appsync - setting limit on rows returned from a list query
I want to increase the number of rows returned greater than the default 10. Using the limit parameter does not seem to work....
Read more >
Data live in DynamoDB however AppSync list query doesn't ...
The default limit is 10 to be as conservative as possible with billed operations. In case you have more than 10 notes from...
Read more >
AWS AppSync query returns wrong item number with ...
When you use a list query with AWS AppSync and Amazon DynamoDB, ... If no limit is applied, then DynamoDB uses the default...
Read more >
Change settings for the Search Results Web Part
Don't restrict by any tag: Search results will not be limited based on tags (default). Restrict by navigation term of current page: Search...
Read more >
3271583 - Item Title & Description are blank in the System ...
Reproducing the Issue · Navigate to LMS Admin system > · Go to Learning Activities > Items > · Search for the affected...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found