From 47ed267110db7499faae5aa0431bf864285ed3b7 Mon Sep 17 00:00:00 2001 From: Hiago Lucas Cardeal Date: Wed, 16 Oct 2024 14:40:49 -0300 Subject: [PATCH] Feature/synerise (#185) #### 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. --- react/queries/recommendationShelf.gql | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/react/queries/recommendationShelf.gql b/react/queries/recommendationShelf.gql index 812d8d5..1eed352 100644 --- a/react/queries/recommendationShelf.gql +++ b/react/queries/recommendationShelf.gql @@ -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 } }