How can i update parent node while inserting new child node?

After @MichelDiz’s comment i changed my schema to DQL:

<house>: [uid] @reverse .
<name>: string @index(exact, term) @lang .
<people>: [uid] .
type <House> {
	name
	people
}
type <Person> {
	name
	house
}

my mutations:

           p = {
                'name': 'House of Bob',
                'people': [{"name" : "Alex"}]
            }

and

            p = {
                'name' : 'Tess',
                'house' : {'uid' : '0x94'}
            }

and while queriying used reverse edge

The reverse edge of anEdge is ~anEdge.

reference https://dgraph.io/docs//query-language/schema/#reverse-edges

query :

{
    q (func : eq(name, "House of Bob")) {
    name
    people : people
    {name}
	reverse : ~house
    {name}
  }
}

I was able to solve my issue. Response:

"data": {
    "q": [
      {
        "name": "House of Bob",
        "default": [
          {
            "name": "Alex"
          }
        ],
        "reverse": [
          {
            "name": "Tess"
          }
        ]
      }
    ]
  }