This is a demonstration of using GraphQL vs REST APIs in Next.js in terms of use cases.
# Install dependencies
bun install
# Run the development server
bun dev
Open http://localhost:3000 with your browser to see the result.
The todo list is implemented using both REST and GraphQL APIs without any data persistence such as database.
So the data is lost when you rebuild or restart the server.