Methods
createNested()
This filter automatically becomes a Nested filter if it detects depth.
- Source:
createNested()
This filter automatically becomes a Nested filter if it detects depth.
- Source:
createNonEnumerableProperty(scope, prop, value)
Assign property as non-enumerable property - won't serialize/iterate but can be accessed. Use this to set attributes while maintaining valid elastic fields.
Parameters:
Name | Type | Description |
---|---|---|
scope |
object | Object to set the property on. Usually 'this'; |
prop |
string | Property to set as non enumerable. |
value |
anything | Sets the property to this value. |
createNonEnumerableProperty(scope, prop, value)
Assign property as non-enumerable property - won't serialize/iterate but can be accessed. Use this to set attributes while maintaining valid elastic fields.
Parameters:
Name | Type | Description |
---|---|---|
scope |
object | Object to set the property on. Usually 'this'; |
prop |
string | Property to set as non enumerable. |
value |
anything | Sets the property to this value. |
extractField()
Gets the path to the parent object of the desired property. EX: 'w.x.y.z' returns 'w.x.y' as a string.
- Source:
extractField()
Gets the path to the parent object of the desired property. EX: 'w.x.y.z' returns 'w.x.y' as a string.
- Source:
getPath()
Gets the path to the parent object of the desired property. EX: 'w.x.y.z' returns 'w.x.y' as a string.
- Source:
getPath()
Gets the path to the parent object of the desired property. EX: 'w.x.y.z' returns 'w.x.y' as a string.
- Source:
merge()
Merges two objects, concatonating matching arrays instead of overwriting them.
merge()
Merges two objects, concatonating matching arrays instead of overwriting them.