Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SessionFactory

Hierarchy

  • SessionFactory

Index

Properties

connection

connection: Db

The MongoDB database connection associated with this [SessionFactory].

Methods

createIndexes

  • Creates any indexes, defined on the mappings, that do not already exist.

    Parameters

    • callback: Callback

      Called after the operation has completed.

    Returns void

  • Creates any indexes, defined on the mappings, that do not already exist.

    Parameters

    Returns void

createSession

dropIndexes

  • Drops all indexes for all collections managed by Hydrate. This includes indexes that were not created by Hydrate.

    Parameters

    • callback: Callback

      Called after the operation has completed.

    Returns void

getCollection

  • Gets the MongoDB database collection for the specified Entity constructor.

    Parameters

    • ctr: Constructor<any>

      The constructor to get the collection for.

    Returns Collection

Generated using TypeDoc