# Error importing examples schema

**URL:** <https://discuss.dgraph.io/t/error-importing-examples-schema/15708>\
**Category:** GraphQL\
**Created:** [October 2, 2021, 5:09am UTC](https://discuss.dgraph.io/t/error-importing-examples-schema/15708 "2021-10-02T05:09:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zmajew](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/zmajew/32/7491_2.png) [@zmajew](https://discuss.dgraph.io/u/zmajew)\
**Post date:** [October 2, 2021, 5:09am UTC](https://discuss.dgraph.io/t/error-importing-examples-schema/15708/1 "2021-10-02T05:09:09Z")

</div>

Hi,  
I was trying to import the schema from dgraph/graphql/resolve/schema.graphql and it returned me an error:

```auto
{"errors":[{"message":"resolving updateGQLSchema failed because input:494: interface is not supported as an argument for id directive.\n (Locations: [{Line: 3, Column: 4}])","extensions":{"code":"Error"}}]}

```

---

<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:** [October 3, 2021, 7:19pm UTC](https://discuss.dgraph.io/t/error-importing-examples-schema/15708/2 "2021-10-03T19:19:51Z")

</div>

What version are you using? And are you following some tutorial? which one?

---

<div class="post-metadata">

**Author:** ![zmajew](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/zmajew/32/7491_2.png) [@zmajew](https://discuss.dgraph.io/u/zmajew)\
**Post date:** [October 4, 2021, 4:40am UTC](https://discuss.dgraph.io/t/error-importing-examples-schema/15708/3 "2021-10-04T04:40:08Z")

</div>

I was trying those [examples](https://github.com/dgraph-io/dgraph/blob/master/graphql/resolve/add_mutation_test.yaml). I updated dgraph to the latest a few days ago.

---

<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:** [October 4, 2021, 4:00pm UTC](https://discuss.dgraph.io/t/error-importing-examples-schema/15708/4 "2021-10-04T16:00:35Z")

</div>

Looks like you should be using master(?). Or you are missing something. These are test files, they have a context to run. You can check the latest PR tests(not sure if they are public) to see that there are no errors.
