UNPKG

@schamane/small-graphql-mongoose-middleware

Version:

![Check Code](https://github.com/schamane/small-graphql-mongoose-middleware/workflows/Check%20Code/badge.svg)

8 lines (7 loc) 470 B
import type { Document } from 'mongoose'; import type { GrapqhContext } from '../../middleware'; import { BasicMongoDataSourceExtension } from './basicMongoDataSourceExtension'; export declare abstract class MutationMongoDataSourceExtension<T extends Document, TContext extends GrapqhContext> extends BasicMongoDataSourceExtension<T, TContext> { abstract entityPreSave(entity: Partial<T>): Partial<T>; abstract entityPreUpdate(entity: Partial<T>): Partial<T>; }