mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
31 lines
404 B
JavaScript
31 lines
404 B
JavaScript
![]() |
/*
|
||
|
|
||
|
The main Comments collection definition file.
|
||
|
|
||
|
*/
|
||
|
|
||
|
import { createCollection } from 'meteor/vulcan:core';
|
||
|
import schema from './schema.js';
|
||
|
|
||
|
const Charges = createCollection({
|
||
|
|
||
|
collectionName: 'Charges',
|
||
|
|
||
|
typeName: 'Charge',
|
||
|
|
||
|
schema,
|
||
|
|
||
|
// resolvers,
|
||
|
|
||
|
// mutations,
|
||
|
|
||
|
});
|
||
|
|
||
|
Charges.addDefaultView(terms => {
|
||
|
return {
|
||
|
options: {sort: {createdAt: -1}}
|
||
|
};
|
||
|
});
|
||
|
|
||
|
export default Charges;
|