UNPKG

arrest

Version:

OpenAPI v3 compliant REST framework for Node.js, with support for MongoDB and JSON-Schema

13 lines (12 loc) 605 B
import { OpenAPIV3 } from 'openapi-police'; import { Method } from '../../types.js'; import { MongoResource } from '../resource.js'; import { MongoJob, MongoOperation } from './base.js'; export declare class QueryMongoOperation extends MongoOperation { constructor(resource: MongoResource, path: string, method: Method, id?: string); protected getCustomInfo(): OpenAPIV3.OperationObject; prepareQuery(job: MongoJob): Promise<MongoJob>; prepareOpts(job: MongoJob): Promise<MongoJob>; runOperation(job: MongoJob): Promise<MongoJob>; redactResult(job: MongoJob): Promise<MongoJob>; }