grapher/lib/query/testing/bootstrap/authors/links.js

21 lines
No EOL
478 B
JavaScript

import Authors from './collection.js';
import Posts from '../posts/collection.js';
import Comments from '../comments/collection.js';
import Groups from '../groups/collection.js';
Authors.addLinks({
comments: {
collection: Comments,
inversedBy: 'author'
},
posts: {
collection: Posts,
inversedBy: 'author'
},
groups: {
type: 'many',
metadata: {},
collection: Groups,
field: 'groupIds'
}
});