Fetch all products from database - #50
Draft
Mtaasisi wants to merge 1 commit into
Draft
Conversation
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 Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❌ Deploy Preview for inauzwaapp failed. Why did it fail? →
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
test | 0580e76 | Oct 04 2025, 06:27 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
fetchAllProductsfunctionality 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 newfetchAllProductsfunction 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.