instance method SpahQL.Token.PathComponent#fetchResultsFromObjectByProperty
SpahQL.Token.PathComponent#fetchResultsFromObjectByProperty(key, object, path, recursive) → Array
-
key
(String
) – The key to be retrieved from the object. Numeric keys in string formare acceptable when accessing arrays. -
rootData
(Object
) – The root data structure being queried. -
scopeData
(Object
) – The data structure from which the key’s associated value will be retrieved -
path
(String
) – The path at which the item used as the ‘object’ argument is located -
recursive
(Boolean
) – A flag indicating whether the key should also be pulled from any child objects of the given object. I N C E P T I O N.
Retrieves the specified Spah object property from the given object, if the object supports the specified property.