api/interest

api/interest

Classes

InterestCollection
InterestTypeCollection

Members

(static, constant) exports.Interests :api/interest.InterestCollection

Source:

Provides the singleton instance of this class to all other entities.

Type:

(static, constant) exports.InterestTypes :api/interest.InterestTypeCollection

Source:

Provides the singleton instance of this class to all other entities.

Type:

Methods

(static) exports.isInterestArrayValidator()

Source:

Custom validator for fields that must contain an Interest slug.

Throws:

Error if there are no Slugs in the SlugCollection.

Returns:

Undefined if the value is an Interest slug, otherwise returns 'undefinedInterestSlug'.

(static) exports.isInterestSlugValidator()

Source:

Custom validator for fields that must contain an Interest slug.

Throws:

Error if there are no Slugs in the SlugCollection.

Returns:

Undefined if the value is an Interest slug, otherwise returns 'undefinedInterestSlug'.

(static) exports.makeSampleInterest() → {String}

Source:

Creates an Interest with a unique slug and returns its docID.
Also creates a new InterestType.

Returns:

The docID for the newly generated Interest.

Type
String

(static) exports.makeSampleInterestType() → {String}

Source:

Creates an InterestType with a unique slug and returns its docID.

Returns:

The docID of the newly generated InterestType.

Type
String