mirror of
https://github.com/vercel/commerce.git
synced 2025-07-29 05:01:22 +00:00
feat: get-blog-detail and relevant blogs
This commit is contained in:
26
framework/vendure/utils/queries/get-blog-detail.ts
Normal file
26
framework/vendure/utils/queries/get-blog-detail.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export const getBlogDetailQuery = /* GraphQL */ `
|
||||
query getBlog($slug: String ){
|
||||
blog(slug: $slug){
|
||||
id
|
||||
isPublish
|
||||
isFeatured
|
||||
authorName
|
||||
createdAt
|
||||
authorAvatarAsset{
|
||||
preview
|
||||
}
|
||||
featuredAsset {
|
||||
preview
|
||||
}
|
||||
translations {
|
||||
title
|
||||
slug
|
||||
description
|
||||
content
|
||||
}
|
||||
relevantProducts{
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user