# Directive Default Doesn't work

**URL:** <https://discuss.dgraph.io/t/directive-default-doesnt-work/17904>\
**Category:** GraphQL\
**Tags:** dgraph\
**Created:** [October 26, 2022, 3:25pm UTC](https://discuss.dgraph.io/t/directive-default-doesnt-work/17904 "2022-10-26T15:25:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdrianMolero94](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/adrianmolero94/32/10097_2.png) [@AdrianMolero94](https://discuss.dgraph.io/u/AdrianMolero94)\
**Post date:** [October 26, 2022, 3:25pm UTC](https://discuss.dgraph.io/t/directive-default-doesnt-work/17904/1 "2022-10-26T15:25:23Z")

</div>

## Report a Dgraph Bug - the default directive does not currently work

### What version of Dgraph are you using? - Latest

in previous versions you could place the default value inside the schema, however in the version released 5 days ago, it starts to present an error when working with the same schema that was running

#Dgraph Latest

```auto
$ dgraph version
 
Latest

```

### Have you tried reproducing the issue with the latest release?

my node in dgraph:

```auto
type MyNode { 
	id: ID!
	description: String
	isDeleted: Boolean @default(add: { value: false})
}

```

---

<div class="post-metadata">

**Author:** ![matthewmcneely](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/matthewmcneely/32/4774_2.png) [@matthewmcneely](https://discuss.dgraph.io/u/matthewmcneely)\
**Post date:** [October 26, 2022, 4:55pm UTC](https://discuss.dgraph.io/t/directive-default-doesnt-work/17904/2 "2022-10-26T16:55:22Z")

</div>

Hey @AdrianMolero94,

Dgraph v22 is based on v21.03, the last stable release of Dgraph. As a consequence, some features in 21.12 are not in the `latest`.

See [Dgraph v22.0.0](https://github.com/dgraph-io/dgraph/releases/tag/v22.0.0) for more information. The product team is presently evaluating features and improvements from v21.12 for inclusion in upcoming releases.

---

<div class="post-metadata">

**Author:** ![Raphael](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/raphael/32/10075_2.png) [@Raphael](https://discuss.dgraph.io/u/Raphael)\
**Post date:** [October 26, 2022, 5:19pm UTC](https://discuss.dgraph.io/t/directive-default-doesnt-work/17904/3 "2022-10-26T17:19:51Z")

</div>

@default directive is definitely in our backlog of good things from v21.12 to include. I don’t have a timeline to communicate yet. We are working on it …

---

<div class="post-metadata">

**Author:** ![AdrianMolero94](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/adrianmolero94/32/10097_2.png) [@AdrianMolero94](https://discuss.dgraph.io/u/AdrianMolero94)\
**Post date:** [October 26, 2022, 7:22pm UTC](https://discuss.dgraph.io/t/directive-default-doesnt-work/17904/4 "2022-10-26T19:22:28Z")

</div>

@Raphael @matthewmcneely thank you for your reply
