code: func (p *pathObject) ToArray(call goja.FunctionCall) goja.Value {
  	return p.toArray(call, false)
  }
docs: // ToArray executes a query and returns the results at the end of the query path as an JS array.
  //
  // Example:
  // 	// javascript
  //	// bobFollowers contains an Array of followers of bob (alice, charlie, dani).
  //	var bobFollowers = g.V("<bob>").In("<follows>").ToArray()