mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
78 lines
No EOL
1.6 KiB
JavaScript
78 lines
No EOL
1.6 KiB
JavaScript
// import gql from 'graphql-tag';
|
|
|
|
// const fragments = {
|
|
|
|
// list: {
|
|
// name: 'postsListFragment',
|
|
// fragment: gql`
|
|
// fragment postsListFragment on Post {
|
|
// _id
|
|
// title
|
|
// url
|
|
// slug
|
|
// postedAt
|
|
// sticky
|
|
// status
|
|
// user {
|
|
// # ...avatarUserInfo
|
|
// _id
|
|
// __displayName
|
|
// __emailHash
|
|
// __slug
|
|
// }
|
|
// }
|
|
// `,
|
|
// },
|
|
|
|
// single: {
|
|
// name: 'postsSingleFragment',
|
|
// fragment: gql`
|
|
// fragment postsSingleFragment on Post {
|
|
// _id
|
|
// title
|
|
// url
|
|
// body
|
|
// htmlBody
|
|
// slug
|
|
// thumbnailUrl
|
|
// baseScore
|
|
// postedAt
|
|
// sticky
|
|
// status
|
|
// categories {
|
|
// # ...minimumCategoryInfo
|
|
// _id
|
|
// name
|
|
// slug
|
|
// }
|
|
// commentCount
|
|
// commenters {
|
|
// # ...avatarUserInfo
|
|
// _id
|
|
// __displayName
|
|
// __emailHash
|
|
// __slug
|
|
// }
|
|
// upvoters {
|
|
// _id
|
|
// }
|
|
// downvoters {
|
|
// _id
|
|
// }
|
|
// upvotes # should be asked only for admins?
|
|
// score # should be asked only for admins?
|
|
// viewCount # should be asked only for admins?
|
|
// clickCount # should be asked only for admins?
|
|
// user {
|
|
// # ...avatarUserInfo
|
|
// _id
|
|
// __displayName
|
|
// __emailHash
|
|
// __slug
|
|
// }
|
|
// }
|
|
// `,
|
|
// },
|
|
// };
|
|
|
|
// export default fragments;
|