nest-demo icon indicating copy to clipboard operation
nest-demo copied to clipboard

Mongoose Guidance when extending from SharedModel

Open accilies opened this issue 7 years ago • 1 comments

Hello Chau,

Loved the tutorial and structure. Now question is in your example, lets say you need to reference objectiD from another model, how would you do it for the todo.model.ts, todo-vm.model.ts and todo-params.model.ts.

I was playing around and I tried to do something like the below but no luck.

` import { SharedModel } from '../../shared/shared.model'; import { TypesSchema } from './../../types/schema/types.schema';

export interface Properties extends SharedModel { content: string; isCompleted: boolean; type: TypesSchema; } `

accilies avatar Sep 12 '18 21:09 accilies

@accilies Hi, sorry for taking so long to see this issue.

I don't quite get the question. Can you please rephrase it?

nartc avatar Oct 13 '18 13:10 nartc