# Issue with queries using ratel - working fine with graphql playground

**URL:** <https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740>\
**Category:** Ratel\
**Created:** [February 11, 2021, 2:59pm UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740 "2021-02-11T14:59:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![panakour](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@panakour](https://discuss.dgraph.io/u/panakour)\
**Post date:** [February 11, 2021, 2:59pm UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740/1 "2021-02-11T14:59:55Z")

</div>

I have the schema:

```auto
type City {
	id: ID!
	name: String! @search(by: [exact])
	lat: Float!
	lng: Float!
	places: [Place] @hasInverse(field: city)
}
type Place {
	id: ID!
	address: String
	city: City!
}

```

I did some queries using graphql playground without any issue:

When I try the same queries using ratel I get errors:

Note: I merge all images to single because the commenting system does not allow me from uploading more than one image:

 ![merge_from_ofoct](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/c/c6e84ee290102047c05228c52c1621bbc402e104.jpeg)

---

<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:** [February 11, 2021, 3:09pm UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740/2 "2021-02-11T15:09:03Z")

</div>

> [@panakour](#):
>
> When I try the same queries using ratel I get errors:

Which errors?

---

<div class="post-metadata">

**Author:** ![panakour](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@panakour](https://discuss.dgraph.io/u/panakour)\
**Post date:** [February 11, 2021, 3:10pm UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740/3 "2021-02-11T15:10:29Z")

</div>

let me update my question because. The commenting system prevent me from uploading more than one image:

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/22a1e19b1cdff5abbf3ca26338480b401d671321.png)

---

<div class="post-metadata">

**Author:** ![panakour](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@panakour](https://discuss.dgraph.io/u/panakour)\
**Post date:** [February 11, 2021, 9:59pm UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740/4 "2021-02-11T21:59:25Z")

</div>

any idea on this?

---

<div class="post-metadata">

**Author:** ![verneleem](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/verneleem/32/5801_2.png) [@verneleem](https://discuss.dgraph.io/u/verneleem)\
**Post date:** [February 11, 2021, 10:57pm UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740/5 "2021-02-11T22:57:52Z")

</div>

The GraphQL playground if for GraphQL queries and mutations, the Ratel UI is only for DQL.

> [@New to Dgraph? DQL vs. GraphQL, Endpoints, Headers, and Schema Translation](http://discuss.hypermode.com/t/new-to-dgraph-dql-vs-graphql-endpoints-headers-and-schema-translation/10443):
>
> I would like to better understand the relationship between the DQL schemas and the GraphQL schemas This statement and a multitude of related questions (see References) have prompted me to write this to help new users. I remember when I started on the Dgraph road. Why were there so many endpoints? Which one should I use when? What is graphql±? (Meaning to me “GraphQL more or less.” [Now it is commonly called DQL to avoid confusion and easier to say/write](http://discuss.hypermode.com/t/poll-rename-graphql/9010)) Should I write my schema in GraphQL or …

---

<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:** [February 11, 2021, 11:03pm UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740/6 "2021-02-11T23:03:36Z")

</div>

Yeah, now that I see the PrintScreen I can see that you have tried to run GraphQL in Ratel. As Varneleem said above, Ratel supports only DQL.

I could add GraphQL support in Ratel. But I’m not sure if that would confuse users even more…

---

<div class="post-metadata">

**Author:** ![verneleem](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/verneleem/32/5801_2.png) [@verneleem](https://discuss.dgraph.io/u/verneleem)\
**Post date:** [February 11, 2021, 11:19pm UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740/7 "2021-02-11T23:19:57Z")

</div>

> [@MichelDiz](#):
>
> I could add GraphQL support in Ratel. But I’m not sure if that would confuse users even more…

I 2nd that it would add even more confusion.

---

<div class="post-metadata">

**Author:** ![panakour](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@panakour](https://discuss.dgraph.io/u/panakour)\
**Post date:** [February 12, 2021, 7:30am UTC](https://discuss.dgraph.io/t/issue-with-queries-using-ratel-working-fine-with-graphql-playground/12740/8 "2021-02-12T07:30:05Z")

</div>

Thanks a lot.
