Skip to content

Commit

Permalink
Feature/synerise (#185)
Browse files Browse the repository at this point in the history
#### What is the purpose of this pull request?

Change the `recommendation` query to support Synerise

#### Types of changes

* [ ] Bug fix (a non-breaking change which fixes an issue)
* [x] New feature (a non-breaking change which adds functionality)
* [ ] Breaking change (fix or feature that would cause existing
functionality to change)
* [ ] Requires change to documentation, which has been updated
accordingly.
  • Loading branch information
hiagolcm authored Oct 16, 2024
1 parent 75f791e commit 47ed267
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions react/queries/recommendationShelf.gql
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@ fragment RecommendationProductFragment on Product {
}

query recommendation($input: RecommendationInput) {
recommendation(input: $input) @context(provider: "vtex.recommendation-graphql") {
response {
recommendations {
base {
...RecommendationProductFragment
}
recommended {
...RecommendationProductFragment
}
}
recommendation(input: $input)
@context(provider: "vtex.recommendation-graphql") {
products {
...RecommendationProductFragment
}
jwt
}
}

0 comments on commit 47ed267

Please sign in to comment.