Skip to content

Commit 9ad3d78

Browse files
committed
feat(discover): add item preview
1 parent ef11100 commit 9ad3d78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clients/web/src/common/api/queries/get-discover.js

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { FRAGMENT_ITEM } from 'common/api/fragments/fragment.item'
1313
import { requestGQL } from 'common/utilities/request/request'
1414
import { TOPIC_IDS } from 'common/constants'
1515
import { processLineup } from 'common/api/derivers/lineups'
16+
import { FRAGMENT_ITEM_PREVIEW } from '../fragments/fragment.preview'
1617

1718
const getDiscoverLineupQuery = gql`
1819
query GetDiscoverLineup($id: String!, $recommendationCount: Int, $slateCount: Int) {
@@ -47,6 +48,9 @@ const getDiscoverLineupQuery = gql`
4748
authors {
4849
name
4950
}
51+
preview {
52+
...ItemPreview
53+
}
5054
}
5155
}
5256
}
@@ -55,6 +59,7 @@ const getDiscoverLineupQuery = gql`
5559
}
5660
}
5761
${FRAGMENT_ITEM}
62+
${FRAGMENT_ITEM_PREVIEW}
5863
`
5964

6065
export async function getDiscoverLineup({ recommendationCount = 30, locale }) {

0 commit comments

Comments
 (0)