# Non-nullable field was not present in result from Dgraph

**URL:** <https://discuss.dgraph.io/t/non-nullable-field-was-not-present-in-result-from-dgraph/12897>\
**Category:** GraphQL\
**Tags:** kind:bug\
**Created:** [February 23, 2021, 7:54am UTC](https://discuss.dgraph.io/t/non-nullable-field-was-not-present-in-result-from-dgraph/12897 "2021-02-23T07:54:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pawan](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/pawan/32/1946_2.png) [@pawan](https://discuss.dgraph.io/u/pawan)\
**Post date:** [February 23, 2021, 2:38pm UTC](https://discuss.dgraph.io/t/non-nullable-field-was-not-present-in-result-from-dgraph/12897/4 "2021-02-23T14:38:35Z")

</div>

This does seem counter-intuitive. The correct way to delete a node should be to use the deleteType mutation. A node shouldn’t be deleted if the user supplies an empty `remove` object. We should ignore the mutation in this case. This has also been reported by another user [Update patch with blank `remove` section removes selected nodes?](http://discuss.hypermode.com/t/update-patch-with-blank-remove-section-removes-selected-nodes/12253) and I think we should change the behavior to have no effect.

---

_[View the full topic](https://discuss.dgraph.io/t/non-nullable-field-was-not-present-in-result-from-dgraph/12897)._
