mirror of
https://github.com/vale981/grapher
synced 2025-03-09 12:26:40 -04:00
19 lines
No EOL
386 B
JavaScript
19 lines
No EOL
386 B
JavaScript
import Comments from './collection.js';
|
|
import Authors from '../authors/collection.js';
|
|
import Posts from '../posts/collection.js';
|
|
|
|
Comments.addLinks({
|
|
author: {
|
|
type: 'one',
|
|
collection: Authors,
|
|
field: 'authorId',
|
|
index: true
|
|
},
|
|
|
|
post: {
|
|
type: 'one',
|
|
collection: Posts,
|
|
field: 'postId',
|
|
index: true
|
|
}
|
|
}); |