Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AccountSessionsService

description

The main service to handle documents in the accounts collection.

since

v0.1.0

Hierarchy

  • AccountSessionsService

Index

Constructors

Methods

  • This method executes a count query using the {@link model} argument.

    Caution: Count queries require a considerable amount of RAM to execute. It is preferred to use pro-active statistics with collections that contain one document with a counter.

    Parameters

    Returns Promise<number>

    The number of matching accounts.

  • Method to query the existence of a document in the account-sessions collection.

    This executes a lean mongoose query such that the properties of the returned document are reduced to only the "_id" field.

    Parameters

    Returns Promise<boolean>

    Whether a document exists which validates the passed query.

Generated using TypeDoc