grapher/lib/exposure/testing/bootstrap/demo.js

26 lines
627 B
JavaScript
Raw Normal View History

const Demo = new Mongo.Collection('exposure_test');
export default Demo;
const DemoLink = new Mongo.Collection('demo_link');
2016-09-28 18:30:12 +03:00
export const DemoRestrictedLink = new Mongo.Collection('DemoRestrictedLink');
Demo.addLinks({
children: {
collection: DemoLink,
type: 'many'
2016-09-28 18:30:12 +03:00
},
restrictedLink: {
collection: DemoRestrictedLink,
type: 'one'
}
2016-09-28 18:30:12 +03:00
});
DemoLink.addLinks({
myself: {
type: 'one',
collection: DemoLink
}
});
export const DemoPublication = new Mongo.Collection('DemoPublication');
export const DemoMethod = new Mongo.Collection('DemoPublicationMethod');