# Do mutations work in dgraph?

**URL:** <https://discuss.dgraph.io/t/do-mutations-work-in-dgraph/16969>\
**Category:** Dgraph\
**Created:** [March 9, 2022, 8:15pm UTC](https://discuss.dgraph.io/t/do-mutations-work-in-dgraph/16969 "2022-03-09T20:15:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ld101](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@ld101](https://discuss.dgraph.io/u/ld101)\
**Post date:** [March 9, 2022, 8:15pm UTC](https://discuss.dgraph.io/t/do-mutations-work-in-dgraph/16969/1 "2022-03-09T20:15:19Z")

</div>

Hi, I am trying out dgraph and passing through some initial examples and I am trying a simple mutation after following out these steps at [https://dgraph.io/docs/graphql/todo-app-tutorial/todo-schema-design/](https://dgraph.io/docs/graphql/todo-app-tutorial/todo-schema-design/)

and I get this error  
**Message:** while lexing mutation { addUser(input: [{ username: “[alice@dgraph.io](mailto:alice@dgraph.io)”, name: “Alice”, tasks: [{ title: “Avoid touching your face”, completed: false, }, { title: “Stay safe”, completed: false }, { title: “Avoid crowd”, completed: true, }, { title: “Wash your hands often”, completed: true }] } ]) { user { username name tasks { id title } } } } at line 1 column 0: Invalid block: [mutation]

---

<div class="post-metadata">

**Author:** ![Valdanito](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/valdanito/32/1381_2.png) [@Valdanito](https://discuss.dgraph.io/u/Valdanito)\
**Post date:** [March 15, 2022, 2:19am UTC](https://discuss.dgraph.io/t/do-mutations-work-in-dgraph/16969/2 "2022-03-15T02:19:14Z")

</div>

Did you execute it in ratel? This is a GraphQL statement that should be executed in the GraphQL client.
