Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides a static matchesFilter method to match an object against a given object filter. Useful for retrieving matching objects on Query events without using a database adapter. Also useful to filter out Coaty objects that match given filter conditions before publishing with Advertise or Channel events.

Hierarchy

  • ObjectMatcher

Index

Constructors

constructor

Accessors

Static collator

  • get collator(): Collator
  • Gets an Intl.Collator instance that is shared by all callers. To be used to efficiently perform language-sensitive string comparison. The returned collator object uses default locales and options.

    Returns Collator

Methods

Static getFilterProperties

  • internal

    For internal use in framework only.

    Gets an array of property names for the given nested properties specified either in dot notation or array notation.

    Parameters

    Returns string[]

    an array of nested property names

Static getFilterPropertyValue

  • internal

    For internal use in framework only.

    Gets the value of a given property for the given object. Property names may be specified to retrieve the value of a nested property of a subordinate object.

    Parameters

    Returns any

    the value of the nested properties of the given object

Static matchesFilter

  • Determines whether the given object matches the given context filter. Note that if you pass in an ObjectFilter, only the filter conditions are heeded for the result.

    Parameters

    Returns boolean

    true on match; false otherwise

Generated using TypeDoc