mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
27 lines
361 B
JavaScript
27 lines
361 B
JavaScript
![]() |
/*
|
||
|
|
||
|
Register the GraphQL fragment used to query for data
|
||
|
|
||
|
*/
|
||
|
|
||
|
import { registerFragment } from 'meteor/vulcan:core';
|
||
|
|
||
|
registerFragment(`
|
||
|
fragment CategoriesItemFragment on Category {
|
||
|
_id
|
||
|
createdAt
|
||
|
userId
|
||
|
user {
|
||
|
displayName
|
||
|
}
|
||
|
name
|
||
|
parentId,
|
||
|
parent {
|
||
|
... on Category {
|
||
|
_id
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`);
|