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) 323 B
import type { Document } from 'mongoose'; import type { GrapqhContext } from '../../middleware'; export declare abstract class BasicMongoDataSourceExtension<T extends Document, TContext extends GrapqhContext> { protected context: TContext; initialize(context: TContext): void; hasRole(role: string): boolean; }