35 lines
590 B
Markdown
35 lines
590 B
Markdown
# module-favorites
|
|
|
|
Need to add this to the account Model
|
|
|
|
@Field(() => [FavoriteComponent], { nullable: 'itemsAndList' })
|
|
favLikes?: FavoriteComponent[];
|
|
|
|
|
|
Need to add the corresponding resolvers
|
|
-- app
|
|
|
|
AccountFavResolver,
|
|
AccountLikeResolver
|
|
|
|
-- admin
|
|
|
|
Need to update the loaders & ressource enum
|
|
|
|
export enum RessourceEnum {
|
|
'NAME_OF_RESSOURCE' = 'NAME_OF_RESSOURCE',
|
|
}
|
|
registerEnumType(RessourceEnum, {
|
|
name: 'RessourceEnum',
|
|
});
|
|
|
|
export const modelsLoaders = {
|
|
accounts: new AccountModel(),
|
|
NAME_OF_RESSOURCE: new NAME_OF_RESSOURCE_MODEL(),
|
|
};
|
|
|
|
|
|
|
|
|
|
|