Options
All
  • Public
  • Public/Protected
  • All
Menu

Module mongo

Index

Type aliases

MongoConnector

MongoConnector<TDocument>: Connector<TDocument, Filter<TDocument>, Pick<QueryOptions, "skip" | "limit">, Collection<TDocument>>

Type parameters

  • TDocument = any

MongooseConnector

MongooseConnector<TModel>: Connector<TModel, FilterQuery<TModel>, QueryOptions, mongoose.Model<any, any>>

Type parameters

  • TModel = any

Functions

Const createMongoConnector

  • Type parameters

    • TDocument = any

    Parameters

    Returns MongoConnector<TDocument>

Const createMongooseConnector

Const filterFunction

  • filterFunction(model: VulcanModel<VulcanSchema<AnyObject>>, input: FilterableInput<any>, context?: any): Promise<FilterFunctionOutput>
  • Parameters

    • model: VulcanModel<VulcanSchema<AnyObject>>
    • input: FilterableInput<any>
    • Optional context: any

    Returns Promise<FilterFunctionOutput>

Generated using TypeDoc