mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 04:56:40 -04:00
34 lines
457 B
JavaScript
34 lines
457 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
|
||
|
}
|
||
|
`);
|