mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 21:16:40 -04:00
54 lines
726 B
JavaScript
54 lines
726 B
JavaScript
import { registerFragment } from 'meteor/vulcan:core';
|
|
|
|
registerFragment(`
|
|
fragment PostsList on Post {
|
|
# posts
|
|
_id
|
|
title
|
|
url
|
|
slug
|
|
postedAt
|
|
createdAt
|
|
sticky
|
|
status
|
|
excerpt
|
|
viewCount
|
|
clickCount
|
|
# users
|
|
userId
|
|
user {
|
|
...UsersMinimumInfo
|
|
}
|
|
# embedly
|
|
thumbnailUrl
|
|
# categories
|
|
categories {
|
|
...CategoriesMinimumInfo
|
|
}
|
|
# comments
|
|
commentCount
|
|
commenters {
|
|
...UsersMinimumInfo
|
|
}
|
|
# voting
|
|
upvoters {
|
|
_id
|
|
}
|
|
downvoters {
|
|
_id
|
|
}
|
|
upvotes
|
|
downvotes
|
|
baseScore
|
|
score
|
|
}
|
|
`);
|
|
|
|
registerFragment(`
|
|
fragment PostsPage on Post {
|
|
...PostsList
|
|
body
|
|
htmlBody
|
|
}
|
|
`);
|
|
|