neo4j - loading nested items as relationship into PHP

I'm having a play with neo4j to load a folder structure. This structure will eventually have some complex requirements, e.g. folders shared with other users, unique links etc. However, I'm struggling to wrap my head around very early on.

I've created some early relationships -

graph view

A folder can have one or more children and of course a child has a parent (unless its at the top level). In this instance, each folder has an ID that corresponds to the title, e.g. Folder 1 = 1, Folder 2 = 2...

However, at this point what I'd like to be able to do is grab the data using a PHP library (at the moment I'm using graphaware/neo4j-php-client and work out the nesting structure, so ultimately I end up with something along the lines of -

{
  "id": 1,
  "name": "Folder 1",
  "children": [
    {
      "id": 3,
      "name": "Folder 3",
      "children": [
        {
          "id": 4,
          "name": "Folder 4",
          "children": [
            {
              "id": 5,
              "name": "Folder 5",
              "children": []
            }
          ]
        }
      ]
    }
  ]
}

However, the data I'm getting back from the following query -

MATCH (n:Folder)-[:CHILD*]->(c:Folder) WHERE n.id = 1 RETURN n, c

Doesn't seem to allow me to establish these relationships. As the dump below shows, I can't see a way to process this and establish the correct relationships, I'm wondering if I'm just querying neo4j wrong, or if I'm missing something entirely! -

array(3) {
  [0]=>
  object(GraphAware\Bolt\Record\RecordView)#53 (3) {
    ["keys":protected]=>
    array(3) {
      [0]=>
      string(5) "id(f)"
      [1]=>
      string(1) "f"
      [2]=>
      string(1) "c"
    }
    ["values":protected]=>
    array(3) {
      [0]=>
      int(2049)
      [1]=>
      object(GraphAware\Bolt\Result\Type\Node)#51 (3) {
        ["identity":protected]=>
        int(2049)
        ["labels":protected]=>
        array(1) {
          [0]=>
          string(6) "Folder"
        }
        ["properties":protected]=>
        array(2) {
          ["name"]=>
          string(8) "Folder 1"
          ["id"]=>
          int(1)
        }
      }
      [2]=>
      object(GraphAware\Bolt\Result\Type\Node)#52 (3) {
        ["identity":protected]=>
        int(1024)
        ["labels":protected]=>
        array(1) {
          [0]=>
          string(6) "Folder"
        }
        ["properties":protected]=>
        array(2) {
          ["name"]=>
          string(8) "Folder 3"
          ["id"]=>
          int(3)
        }
      }
    }
    ["keyToIndexMap":"GraphAware\Bolt\Record\RecordView":private]=>
    array(3) {
      ["id(f)"]=>
      int(0)
      ["f"]=>
      int(1)
      ["c"]=>
      int(2)
    }
  }
  [1]=>
  object(GraphAware\Bolt\Record\RecordView)#56 (3) {
    ["keys":protected]=>
    array(3) {
      [0]=>
      string(5) "id(f)"
      [1]=>
      string(1) "f"
      [2]=>
      string(1) "c"
    }
    ["values":protected]=>
    array(3) {
      [0]=>
      int(2049)
      [1]=>
      object(GraphAware\Bolt\Result\Type\Node)#54 (3) {
        ["identity":protected]=>
        int(2049)
        ["labels":protected]=>
        array(1) {
          [0]=>
          string(6) "Folder"
        }
        ["properties":protected]=>
        array(2) {
          ["name"]=>
          string(8) "Folder 1"
          ["id"]=>
          int(1)
        }
      }
      [2]=>
      object(GraphAware\Bolt\Result\Type\Node)#55 (3) {
        ["identity":protected]=>
        int(2051)
        ["labels":protected]=>
        array(1) {
          [0]=>
          string(6) "Folder"
        }
        ["properties":protected]=>
        array(2) {
          ["name"]=>
          string(8) "Folder 4"
          ["id"]=>
          int(4)
        }
      }
    }
    ["keyToIndexMap":"GraphAware\Bolt\Record\RecordView":private]=>
    array(3) {
      ["id(f)"]=>
      int(0)
      ["f"]=>
      int(1)
      ["c"]=>
      int(2)
    }
  }
  [2]=>
  object(GraphAware\Bolt\Record\RecordView)#59 (3) {
    ["keys":protected]=>
    array(3) {
      [0]=>
      string(5) "id(f)"
      [1]=>
      string(1) "f"
      [2]=>
      string(1) "c"
    }
    ["values":protected]=>
    array(3) {
      [0]=>
      int(2049)
      [1]=>
      object(GraphAware\Bolt\Result\Type\Node)#57 (3) {
        ["identity":protected]=>
        int(2049)
        ["labels":protected]=>
        array(1) {
          [0]=>
          string(6) "Folder"
        }
        ["properties":protected]=>
        array(2) {
          ["name"]=>
          string(8) "Folder 1"
          ["id"]=>
          int(1)
        }
      }
      [2]=>
      object(GraphAware\Bolt\Result\Type\Node)#58 (3) {
        ["identity":protected]=>
        int(1044)
        ["labels":protected]=>
        array(1) {
          [0]=>
          string(6) "Folder"
        }
        ["properties":protected]=>
        array(2) {
          ["name"]=>
          string(8) "Folder 5"
          ["id"]=>
          int(5)
        }
      }
    }
    ["keyToIndexMap":"GraphAware\Bolt\Record\RecordView":private]=>
    array(3) {
      ["id(f)"]=>
      int(0)
      ["f"]=>
      int(1)
      ["c"]=>
      int(2)
    }
  }
}