mirror of
https://github.com/vale981/grapher
synced 2025-03-10 12:56:41 -04:00
21 lines
478 B
JavaScript
21 lines
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'
|
||
|
}
|
||
|
});
|