Options
All
  • Public
  • Public/Protected
  • All
Menu

odatafy-mongodb

Index

Type Aliases

MongoDBODatafyOpts: { expandMapping?: CollectionMap; regexSearchFields?: string[]; returnCountOnly?: boolean; returnDataCountQuery?: boolean; returnEmptyPipeline?: boolean }

Type declaration

  • Optional expandMapping?: CollectionMap
  • Optional regexSearchFields?: string[]
  • Optional returnCountOnly?: boolean
  • Optional returnDataCountQuery?: boolean
  • Optional returnEmptyPipeline?: boolean

Functions

  • Get a MongoDB based on oData url paramaters

    Parameters

    • parameters: oDataParameters

      parameters

    • Optional opts: MongoDBODatafyOpts

      options for getting the url

    Returns Document[]

    MongoDB aggregaion pipeline

  • Get MongoDB aggregation query from a given url can be obtained by nodes req.url

    Parameters

    • oDataUrl: string

      the url format ?param=value

    • Optional opts: MongoDBODatafyOpts

      options for getting the url

    Returns Document[]

    MongoDB aggregation query

Generated using TypeDoc