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) 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

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.