Options
All
  • Public
  • Public/Protected
  • All
Menu
description

The main service of the Blocks module.

since

v0.3.2

Hierarchy

  • BlocksService

Index

Constructors

Methods

  • createOrUpdateBatch(blockDocuments: BlockModel[]): Promise<number>
  • Method to query the existence of a document in the blocks collection.

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

    Parameters

    • query: BlockQuery

      The query configuration with sort, order, pageNumber, pageSize.

    Returns Promise<boolean>

    Whether a document exists which validates the passed query.

Generated using TypeDoc