src code

instance method Spah.SpahQL.QueryResult#replace

Spah.SpahQL.QueryResult#replace(value) → Boolean
  • value (Object) – The value to replace this query result’s value.

Replaces the data on this query result, modifying the queried data in the process. If this result is the root object, the replace will not be performed and will return false. If this result was not created from a path query then the replace method will simply set the value on this result instance and return true. Otherwise, the result of setting this result’s key on the parent object will be returned.