import filter from 'lodash/filter';

import { Migration, IResolver, IModel, isModel, isResolver, isMigration } from '@grund/models-sequelize';

import * as allModelExports from './models';

export const modelArray = filter(allModelExports, isModel) as IModel[];
export const resolverArray = filter(allModelExports, isResolver) as IResolver[];
export const migrationArray = filter(allModelExports, isMigration) as Migration[];
