I have svg like this:

```
<svg id="mySvg">
    <path></path>
    <path></path>
    <path></path>
</svg>

```

But I would like to group all paths in this svg inside the **g** tag, so it would look like that:

```
<svg id="mySvg">
    <g>
        <path></path>
        <path></path>
        <path></path>
    </g>
</svg>

```

How should I do it?

```
d3.select("#mySvg").append("g") // -> and move all paths inside g

```