import { merge } from 'lodash' ; import { RelationMeta } from '../../../types' ; import { requireYAML } from '../../../utils/require-yaml' ; const systemData = requireYAML ( require . resolve ( './relations.yaml' ) ) as { data : RelationMeta [ ] ; defaults : Partial < RelationMeta > ; } ; export const systemRelationRows = systemData . data . map ( ( row ) => { return merge ( { system : true } , systemData . defaults , row ) ; } ) ;