mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
26 lines
379 B
JavaScript
26 lines
379 B
JavaScript
![]() |
import Telescope from 'meteor/nova:lib';
|
||
|
import Categories from './collection.js';
|
||
|
|
||
|
Telescope.graphQL.addQuery(`
|
||
|
categories: [Category]
|
||
|
category(_id: String): Category
|
||
|
`);
|
||
|
|
||
|
Categories.graphQLQueries = {
|
||
|
single: `
|
||
|
_id
|
||
|
name
|
||
|
description
|
||
|
order
|
||
|
slug
|
||
|
image
|
||
|
parent {
|
||
|
_id
|
||
|
name
|
||
|
description
|
||
|
order
|
||
|
slug
|
||
|
image
|
||
|
}
|
||
|
`
|
||
|
}
|