# parent-of (/catalog/edges/parent-of)

Puts items in a hierarchy, where each child has one parent and goes to the bin with it.



## parent-of [#parent-of]

Says that an item is the parent of another item, so that items form a hierarchy.

**written_from:** `to`

**acyclic:** `true`

A parent lists its **Children**, and a child its **Parent**. Read from the child, the edge's reverse name is `child-of`. [Edges](/build/edges#edge-types) says when to use it and when another edge type fits.

## The rules it holds [#the-rules-it-holds]

* **One parent.** A child has at most one parent, and a parent any number of children. A second parent is refused with `400 edge_constraint_violation`.
* **No loops.** An edge that would make an item its own ancestor is refused with `400 edge_cycle`.

## In the bin [#in-the-bin]

Moving a parent to the bin moves its children there too, at every depth, even children whose types the key can't read. Restoring the parent brings back the children its trip took, and leaves any child you binned before it. Binning a child leaves its parent.

## In a folder [#in-a-folder]

The child's file writes the edge, under the reverse name:

```yaml
child-of: "[[Move house]]"
```

## Example [#example]

A task made a child of another:

```json
{
  "edge_type": "parent-of",
  "from_id": "01a1f139-e055-774a-a8a5-b20cdad1b4a3",
  "to_id": "01a1f139-e05b-7246-94b7-d9ff13926d57"
}
```
