Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QueryService

Query services.

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly dbm

dbm: default

Methods

advancedQuery

  • Perform an advanced search for posts.

    Parameters

    • parameters: QueryParams

      Search parameters.

    • sortBy: QuerySortOptions

      The element to sort by.

    • sortAscending: boolean = true

      Whether to sort ascending or descending.

    Returns Promise<QueryPost[]>

    All posts that match the search parameters.

query

  • query(search: string): Promise<QueryPost[]>
  • Perform a basic search for posts.

    Parameters

    • search: string

      Search parameters.

    Returns Promise<QueryPost[]>

    All posts that match the search parameters.

Generated using TypeDoc