mirror of
https://github.com/vale981/Vulcan
synced 2025-03-12 05:26:38 -04:00
49 lines
686 B
JavaScript
49 lines
686 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
|
|
currentUserVotes{
|
|
...VoteFragment
|
|
}
|
|
baseScore
|
|
score
|
|
}
|
|
`);
|
|
|
|
registerFragment(`
|
|
fragment PostsPage on Post {
|
|
...PostsList
|
|
body
|
|
htmlBody
|
|
}
|
|
`);
|
|
|