import CategoryModel from '@services/module-cms/functions/categories/category.model'; import ListModel from '@services/module-cms/functions/lists/list.model'; import PageModel from '@services/module-cms/functions/pages/pages.model'; import AccountModel from '@src/accounts/account.model'; import DataLoader from 'dataloader'; import StreamEngineModel from './engine/utils/streams/stream.model'; import { buildEngineLoader, buildLoader } from './services/database/LoaderService'; import NotificationModel from './services/notifications/notifications.model'; /* !!! Do not use, copy on parent only ! */ const seedModelLoaders = { 'stream.changes': new StreamEngineModel(), streams: new StreamEngineModel(), notifications: new NotificationModel(), accounts: new AccountModel(), pages: new PageModel(), }; class SeedLoaders { /* CMS */ listLoader: DataLoader; categoryLoader: DataLoader; // tagsLoader: DataLoader; // answerLoader: DataLoader; /* ACCOUNT */ accountLoader: DataLoader; public constructor() { this.listLoader = buildLoader(new ListModel()); this.categoryLoader = buildLoader(new CategoryModel()); // this.tagsLoader = buildEngineLoader(new TagModel()); // this.answerLoader = buildEngineLoader(new AnswerEngineModel()); this.accountLoader = buildLoader(new AccountModel()); } }