Vulcan/packages/nova-categories/lib/collection.js

26 lines
No EOL
510 B
JavaScript

import Telescope from 'meteor/nova:lib';
import schema from './schema.js';
import fragments from './fragments.js';
import mutations from './mutations.js';
import resolvers from './resolvers.js';
import { createCollection } from 'meteor/nova:core';
/**
* @summary The global namespace for Categories.
* @namespace Categories
*/
const Categories = createCollection({
collectionName: 'categories',
typeName: 'Category',
schema,
resolvers,
mutations,
});
export default Categories;