src code

instance method Spah.SpahQL.QueryResult#detach

Spah.SpahQL.QueryResult#detach() → Spah.SpahQL.QueryResult

Takes this query result and create new root-level QueryResult (with path ”/”). The value of this QueryResult is deep-cloned and modifying the detached result will not cause the original data to be modified, nor will it cause modification events to be triggered on the original data.