Hi, as it stands, if we want to change what parameters our client sends us, eg instead of this
export interface IUserInputDTO {
name: string;
email: string;
password: string;
}
We suddenly need
export interface IUserInputDTO {
name: string;
email: string;
password: string;
birthday: string;
}
We would need to change mongoose schema, celebrate body schema and our interface. Is there a better way about this? Or at least add it so the compiler will complain and give us an auto-complete. Writing this three times without the IDE complaining would be really annoying.
Hi, as it stands, if we want to change what parameters our client sends us, eg instead of this
We suddenly need
We would need to change mongoose schema, celebrate body schema and our interface. Is there a better way about this? Or at least add it so the compiler will complain and give us an auto-complete. Writing this three times without the IDE complaining would be really annoying.