Options
All
  • Public
  • Public/Protected
  • All
Menu

Options that specify how will the options be exported and are not about the mongoexport options.

Hierarchy

  • ExtendedExportingOptions

Index

Properties

Optional absolutePath

absolutePath: undefined | boolean

If the filePath value is absolute and not relative to the outDir option.

Default: false

Optional fileName

fileName: undefined | string | ((db: string, collection: string, type: "json" | "csv") => string)

A string or a function returning the name of the file of the exported collection.

Default: undefined

Optional filePath

filePath: undefined | string | ((db: string, collection: string, type: "json" | "csv", outPath: string) => string)

A string or a function returning the path of the file of the exported collection.

Default: undefined

Optional prependDbName

prependDbName: undefined | boolean

If the file name will be prepended by the database of the collection. The format is: "database_filename.extension".

When undefined, if the outType is 'deep' the file name is not prepended while if the outType is 'flat' it is prepended

Default: undefined

Generated using TypeDoc