mirror of
https://github.com/vercel/commerce.git
synced 2025-07-28 20:51:23 +00:00
feat: get-blog-detail and relevant blogs
This commit is contained in:
25
framework/vendure/utils/queries/get-relevant-blogs.ts
Normal file
25
framework/vendure/utils/queries/get-relevant-blogs.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export const getRelevantBlogsQuery = /* GraphQL */ `
|
||||
query relevantBlogs($productId: ID!){
|
||||
relevantBlogs(productId:$productId){
|
||||
items {
|
||||
id
|
||||
isPublish
|
||||
isFeatured
|
||||
authorName
|
||||
createdAt
|
||||
authorAvatarAsset{
|
||||
preview
|
||||
}
|
||||
featuredAsset {
|
||||
preview
|
||||
}
|
||||
translations {
|
||||
title
|
||||
slug
|
||||
description
|
||||
content
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user