Skip to content

Fetch all products from database - #50

Draft
Mtaasisi wants to merge 1 commit into
mainfrom
cursor/fetch-all-products-from-database-a2c1
Draft

Fetch all products from database#50
Mtaasisi wants to merge 1 commit into
mainfrom
cursor/fetch-all-products-from-database-a2c1

Conversation

@Mtaasisi

@Mtaasisi Mtaasisi commented Oct 4, 2025

Copy link
Copy Markdown
Owner

Add fetchAllProducts functionality to retrieve all products from the database, including related data, along with utility functions for counts and category filtering.

The existing product fetching mechanism (getProducts) included pagination. This PR introduces a new fetchAllProducts function to specifically fetch all products without pagination limits, providing a complete dataset for use cases like reporting, exports, or full inventory overviews. Additional utility functions for product counts and category-specific fetching, along with demo components and usage examples, are included to enhance usability and demonstrate integration.


Open in Cursor Open in Web

This commit introduces the ability to fetch all products from the database, including detailed information about categories, suppliers, and variants. It also includes components for demonstrating this functionality, utility functions for fetching counts and filtering by category, and example usage documentation.

Co-authored-by: xamuelhance10 <xamuelhance10@gmail.com>
@cursor

cursor Bot commented Oct 4, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel

vercel Bot commented Oct 4, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
pos Error Error Oct 4, 2025 6:27am
pos-c12n Error Error Oct 4, 2025 6:27am

@netlify

netlify Bot commented Oct 4, 2025

Copy link
Copy Markdown

Deploy Preview for inauzwaapp failed. Why did it fail? →

Name Link
🔨 Latest commit 0580e76
🔍 Latest deploy log https://app.netlify.com/projects/inauzwaapp/deploys/68e0be39bc622600086132f9

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
test 0580e76 Oct 04 2025, 06:27 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants