-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Todos tutorial step - sort Todos by createdAt date #478
Comments
Hello, @JoshuaTyler-GitHub and thanks for opening this issue. I've created a docs issue on the |
Hi. I would not need a feature request, but please could the team suggest how to list the Todo and sort by createdAt. As I see in other issue thread, we could create a
So, please could the anyone suggest how to sort a list with Gen 2? Thanks. |
Solved: After looking at the Gen 1 doc, for reference, I'm able to do that for Gen 2. The trick is creating a new dummy field
Then, populate / update all todos with new
Anyway, please update the doc for Gen 2 so people like me will not need to adapt this trick from Gen 1. Thx. |
Is this related to a new or existing framework?
React, Next.js
Is this related to a new or existing API?
GraphQL API, New API
Is this related to another service?
No response
Describe the feature you'd like to request
I would like the tutorial starter project to be expanded on a bit to cover how Todos are sorted by the
createdAt
timestamp.https://docs.amplify.aws/nextjs/start/quickstart/nextjs-app-router-client-components/
Describe the solution you'd like
I would like code examples of how to sort Todos by the time at which they were created.
Describe alternatives you've considered
You can sort them on the frontend but that does not do you any good if the newest Todos are not delivered to you from the backend.
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: