mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
35 lines
No EOL
471 B
JavaScript
35 lines
No EOL
471 B
JavaScript
/*
|
|
|
|
Register the GraphQL fragment used to query for data
|
|
|
|
*/
|
|
|
|
import { registerFragment } from 'meteor/vulcan:core';
|
|
|
|
registerFragment(`
|
|
fragment PicsItemFragment on Pic {
|
|
_id
|
|
createdAt
|
|
userId
|
|
user {
|
|
displayName
|
|
}
|
|
imageUrl
|
|
commentsCount
|
|
}
|
|
`);
|
|
|
|
registerFragment(`
|
|
fragment PicsDetailsFragment on Pic {
|
|
_id
|
|
createdAt
|
|
userId
|
|
user {
|
|
displayName
|
|
}
|
|
imageUrl
|
|
commentsCount
|
|
body
|
|
managerId
|
|
}
|
|
`); |