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) 432 B
import type { Document } from 'mongoose'; import { GrapqhContext } from '..'; import { MutationMongoDataSourceExtension } from './dataaccess/mutationMongoDataSourceExtension'; export declare class BasicEntityExtension<T extends Document, TContext extends GrapqhContext> extends MutationMongoDataSourceExtension<T, TContext> { entityPreSave(entity: Partial<T>): Partial<T>; entityPreUpdate(entity: Partial<T>): Partial<T>; }