title: Slatejs: How at query and update an existing node?
body: <p>I am trying to do something like this in order to updated and already existed node, but the docs are not clear about it.</p>
  <pre><code>const paht = [0,1,1,2]
  const data: any = {
                  type: 'ref',
                  id: uniqid(),
                  data: target,
                  x: 'new data are here.,',
                  children: [{text: 'more new data'}],
              }
  
  editor.apply({
                  type: 'update_node_at_path',
                  path:path,
                  newProperties: {
                      node:data,
                  },
              });
  
  </code></pre>