Untitled
Anonymous
javascript
02/04/2021 2:56 PM
480 B
17
Indexable
import { Prop, Schema, SchemaFactory, SchemaOptions } from '@nestjs/mongoose';
import { truncate } from 'fs';
import { Document } from 'mongoose';
export type ContactUsDocument = ContactUs & Document;
@Schema()
export class ContactUs {
@Prop({ required: true})
name: string;
}
export const ContactUsSchema = SchemaFactory.createForClass(ContactUs);Editor is loading...