# Dgo Mutation preds 1-\\u0000 error during mutation

**URL:** <https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469>\
**Category:** Dgraph Clients\
**Tags:** kind:question\
**Created:** [September 3, 2021, 4:12am UTC](https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469 "2021-09-03T04:12:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaostheory](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chaostheory/32/8779_2.png) [@chaostheory](https://discuss.dgraph.io/u/chaostheory)\
**Post date:** [September 3, 2021, 4:12am UTC](https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469/1 "2021-09-03T04:12:45Z")

</div>

### What Dgraph client (and version) are you using?

(put “x” in the box to select)

- Dgo  
Version: v210

### What version of Dgraph are you using? 21.03.1

When I run the following mutation

```auto
type Path struct {
				Title string `json:"Path.title,omitempty"`
							}
			p := Path{
				Title: "NewPath",
			}
			pb, err := json.Marshal(p)
			if err != nil {
				log.Fatal(err)
			}
			mu := &api.Mutation{
				SetJson: pb,
			}
			resp, err := txn.Mutate(ctx, mu)
			if err != nil {
				log.Fatal(err)
			}

```

```auto
{"c":{"txn":{"start_ts":145953,"keys":["sdbssh"],"preds":["1-\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000Path.title"]},"latency":{"parsing_ns":58475,"processing_ns":673067,"assign_timestamp_ns":480799,"total_ns":1271831},"metrics":{"num_uids":{"_total":2,"mutation_cost":2}},"uids":{"dg.842992234.11":"0xc367"},"hdrs":{"content-type":{"value":["application/grpc"]},"dgraph-toucheduids":{"value":["2"]}}}

```

I keep getting this response during mutation. How do I solve this?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [September 3, 2021, 1:15pm UTC](https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469/2 "2021-09-03T13:15:14Z")

</div>

Can you share the error? I don’t see one.

---

<div class="post-metadata">

**Author:** ![chaostheory](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chaostheory/32/8779_2.png) [@chaostheory](https://discuss.dgraph.io/u/chaostheory)\
**Post date:** [September 3, 2021, 1:16pm UTC](https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469/3 "2021-09-03T13:16:32Z")

</div>

No nodes are created, but the uid is returned.

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [September 3, 2021, 1:19pm UTC](https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469/4 "2021-09-03T13:19:13Z")

</div>

Have you added the predicate `"dgraph.type": "Path"`? If the UIDs are returned, that means the Node was created for sure.

---

<div class="post-metadata">

**Author:** ![chaostheory](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chaostheory/32/8779_2.png) [@chaostheory](https://discuss.dgraph.io/u/chaostheory)\
**Post date:** [September 3, 2021, 1:23pm UTC](https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469/5 "2021-09-03T13:23:58Z")

</div>

Is it happening because I am using Graphql schema and have not configured it to suit DQL?  
This is my schema in graphql

```auto
type Path {
	id: ID! 
	nodes: [Node] @hasInverse(field:is_in_path) 
	title: String 
	owner: User 
}

```

And this is the schema shown in Dgraph Schema  
 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/a/a968cd7add144eb11c589c5a0362b1633491d39b.png)

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [September 3, 2021, 1:25pm UTC](https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469/6 "2021-09-03T13:25:58Z")

</div>

So your mutation should be like

```auto
"Path.title": "NewPath",
"dgraph.type": "Path"

```

And you should be good to go.

---

<div class="post-metadata">

**Author:** ![Naman](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/naman/32/3498_2.png) [@Naman](https://discuss.dgraph.io/u/Naman)\
**Post date:** [September 10, 2021, 2:33pm UTC](https://discuss.dgraph.io/t/dgo-mutation-preds-1-u0000-error-during-mutation/15469/7 "2021-09-10T14:33:04Z")

</div>

Closed on September 10, 2021, 2:33pm UTC


