Spaces:
Running
Running
| import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; | |
| import { Document } from 'mongoose'; | |
| ({ timestamps: true }) | |
| export class ErrorLog extends Document { | |
| ({ required: true, index: true }) | |
| path!: string; | |
| ({ required: true }) | |
| method!: string; | |
| ({ required: true }) | |
| statusCode!: number; | |
| () | |
| errorName?: string; | |
| () | |
| message?: string; | |
| () | |
| stack?: string; | |
| () | |
| ip?: string; | |
| () | |
| userAgent?: string; | |
| ({ type: Object }) | |
| requestContext?: Record<string, unknown>; | |
| } | |
| export const ErrorLogSchema = SchemaFactory.createForClass(ErrorLog); | |