# Why does custom dql not support mutation?

**URL:** <https://discuss.dgraph.io/t/why-does-custom-dql-not-support-mutation/10366>\
**Category:** GraphQL\
**Tags:** discussion, kind:question, kind:enhancement, status:accepted, ticket:created\
**Created:** [September 15, 2020, 7:53am UTC](https://discuss.dgraph.io/t/why-does-custom-dql-not-support-mutation/10366 "2020-09-15T07:53:10Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jdgamble555](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/jdgamble555/32/7503_2.png) [@jdgamble555](https://discuss.dgraph.io/u/jdgamble555)\
**Post date:** [March 22, 2021, 2:02pm UTC](https://discuss.dgraph.io/t/why-does-custom-dql-not-support-mutation/10366/10 "2021-03-22T14:02:53Z")

</div>

@minhaj Could you guys add **JSON Mutation Format** support to lambdas?

> [@Slash DGraph Lambdas Feature Requests / Small Change](http://discuss.hypermode.com/t/slash-dgraph-lambdas-feature-requests-small-change/13288/1):
>
> This is probably the easiest fix. Allow **DQL** within lambdas to accept JSON Mutation Format. You could easily [update the code here](https://github.com/dgraph-io/dgraph-lambda/blob/8bb34dd627d0522fe8c0516cf784a5ecadc89523/src/dgraph.ts#L39).
> 
> My suggestion would be something as simple as:
> 
> ```auto
> "Content-Type": typeof obj == 'object' ? "application/json" : "application/rdf"
> 
> ```
> 
> It may be a little more complicated than that, but you get the drift.

There are many use cases for this.

Thanks,  
J

---

_[View the full topic](https://discuss.dgraph.io/t/why-does-custom-dql-not-support-mutation/10366)._
