You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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)


## Checklist
<em>You may erase this after checking them all 😉</em>
**PR Description**
- [ ] Adds graphQL `Reviews` types
- [ ] Creates a new query resolver for `Reviews`
0 commit comments