GQLBaseEnv
GQLBaseEnv
- Source:
- GQLBase.js, line 64
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.
Type:
- Symbol
- Source:
- GQLBase.js, line 130
(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 141
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.
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 101