Skip to content
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

feat: reviews query resolver #2649

Open
wants to merge 3 commits into
base: feat/reviews-and-ratings
Choose a base branch
from

Conversation

Guilera
Copy link
Collaborator

@Guilera Guilera commented Jan 29, 2025

⚠️ THIS PR DEPENDS ON #2647 ⚠️

What's the purpose of this pull request?

To add reviews query resolver on graphQL

How it works?

It defines a few new types and adds a new query resolver called: reviews wich retrieves an array of reviews for a specific product.

For input we have:

  • productId (required)
  • after and first for pagination, (both are optional)
  • sort (optional)
  • rating (optional)(for filtering)

How to test it?

run the api graphql server locally with the following command:

yarn dev:server

and make a query call

References

JIRA TASK: SFS-2094

image
image

Checklist

You may erase this after checking them all 😉

PR Description

  • Adds graphQL Reviews types
  • Creates a new query resolver for Reviews

@Guilera Guilera added the depends on Depends on another PR - Please mention the PR label Jan 29, 2025
@Guilera Guilera requested a review from a team as a code owner January 29, 2025 17:40
Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview Jan 30, 2025 2:57pm

@Guilera Guilera changed the title Feat/reviews query resolver feat: reviews query resolver Jan 29, 2025
Copy link

codesandbox-ci bot commented Jan 29, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depends on Depends on another PR - Please mention the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant