GQLBaseEnv

GQLBaseEnv

Source:

Members

(static, constant) MODEL_KEY :Symbol

A Symbol used as a key to store the backing model data. Designed as a
way to separate model data and GraphQL property accessors into logical bits.

Source:
Type:
  • Symbol

(inner, constant) AUTO_PROPS :Symbol

A Symbol used to identify calls to @Properties for properties generated
automatically upon instance creation.

Source:
Type:
  • Symbol

(inner, constant) GETTERS :Symbol

A Symbol used to identify calls to @Getters for properties generated
via decorator. These are stored in [META_KEY][GETTERS]

Source:
Type:
  • Symbol

(inner, constant) META_KEY :Symbol

A nameless Symbol for use as a key to the internal decorator storage

Source:
Type:
  • Symbol

(inner, constant) PROPS :Symbol

A Symbol used to identify calls to @Properties for properties generated
via decorator. These are stored in [META_KEY][PROPS]

Source:
Type:
  • Symbol

(inner, constant) REQ_DATA_KEY :Symbol

A Symbol used as a key to store the request data for an instance of the
GQLBase object in question.

Source:
Type:
  • Symbol

(inner, constant) SETTERS :Symbol

A Symbol used to identify calls to @Setters for properties generated
via decorator. These are stored in [META_KEY][SETTERS]

Source:
Type:
  • Symbol

Methods

(inner) notDefined(keyToTest, keySupplied, instance) → {Boolean}

Simple function to check if a supplied key matches a string of your
choosing and that string is not a defined property on the instance
passed to the check.

Since:
  • 2.5.0
Source:
Parameters:
Name Type Description
keyToTest string

a String denoting the property you wish to test

keySupplied mixed

a value, coerced toString(), to compare to
keyToTest

instance mixed

an object instance to check hasOwnProperty on for
the keyToTest supplied.

Returns:
Type:
Boolean

true if the property matches the supplied key and that
property is not an ownedProperty of the instance supplied.