GQLBaseEnv
GQLBaseEnv
- Source:
- GQLBase.js, line 64
Members
(static, constant) GQLBaseModule :Object
Constant referring to the nodejs module in which this code is defined.
Type:
- Object
- Source:
- GQLBase.js, line 125
(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.
Type:
- Symbol
- Source:
- GQLBase.js, line 135
(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.
Type:
- Symbol
- Source:
- GQLBase.js, line 146
Methods
(static) 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.
Parameters:
Name | Type | Description |
---|---|---|
keyToTest |
String | a String denoting the property you wish to test |
keySupplied |
mixed | a value, coerced |
instance |
mixed | an object instance to check |
Returns:
(
Boolean
)
true if the property matches the supplied key and that
property is not an ownedProperty of the instance supplied.
- Since:
- 2.5.0
- Source:
- GQLBase.js, line 97