Skip to content

feat: reviews query resolver - #2649

Merged
lucasfp13 merged 2 commits into
feat/reviews-and-ratingsfrom
feat/reviews-query-resolver
Feb 7, 2025
Merged

lucasfp13 merged 2 commits into
feat/reviews-and-ratingsfrom
feat/reviews-query-resolver

Conversation

@Guilera

@Guilera Guilera commented Jan 29, 2025 •

Copy link
Copy Markdown
Contributor

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
@vercel

vercel Bot commented Jan 29, 2025 •

Copy link
Copy Markdown

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
@codesandbox-ci

codesandbox-ci Bot commented Jan 29, 2025 •

Copy link
Copy Markdown

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.

@pedromtec

Copy link
Copy Markdown
Contributor

Captura de Tela 2025-02-06 às 10 27 58

Query is working.

@Guilera
Guilera force-pushed the feat/reviews-query-resolver branch from b37404e to 6dcb384 Compare February 6, 2025 17:43
@Guilera
Guilera force-pushed the feat/reviews-query-resolver branch from 6dcb384 to 520af25 Compare February 7, 2025 13:12
@lucasfp13
lucasfp13 merged commit dda085a into feat/reviews-and-ratings Feb 7, 2025
@lucasfp13
lucasfp13 deleted the feat/reviews-query-resolver branch February 7, 2025 15:55
Guilera added a commit that referenced this pull request Feb 14, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
artursantiago pushed a commit that referenced this pull request Feb 14, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
artursantiago pushed a commit that referenced this pull request Feb 14, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
artursantiago pushed a commit that referenced this pull request Feb 14, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
artursantiago pushed a commit that referenced this pull request Feb 14, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
Guilera added a commit that referenced this pull request Feb 18, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
artursantiago pushed a commit that referenced this pull request Feb 18, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
Guilera added a commit that referenced this pull request Feb 19, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
pedromtec pushed a commit that referenced this pull request Mar 11, 2025
## 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:
```bash
yarn dev:server
```
and make a query call

## References

[JIRA TASK: SFS-2094](https://vtex-dev.atlassian.net/browse/SFS-2094)


![image](https://github.com/user-attachments/assets/d07547af-329e-4dbe-8b83-75694ec18fbc)

![image](https://github.com/user-attachments/assets/f9bcef6d-359e-464e-893a-74f1ffc06464)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
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.

3 participants