@schamane/small-graphql-mongoose-middleware
Version:

8 lines (7 loc) • 470 B
TypeScript
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>;
}