# Does Java Client support GraphQL

**URL:** <https://discuss.dgraph.io/t/does-java-client-support-graphql/11999>\
**Category:** Dgraph Clients\
**Tags:** kind:question\
**Created:** [December 21, 2020, 7:55am UTC](https://discuss.dgraph.io/t/does-java-client-support-graphql/11999 "2020-12-21T07:55:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkerkhoff](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mkerkhoff/32/5734_2.png) [@mkerkhoff](https://discuss.dgraph.io/u/mkerkhoff)\
**Post date:** [December 21, 2020, 7:55am UTC](https://discuss.dgraph.io/t/does-java-client-support-graphql/11999/1 "2020-12-21T07:55:30Z")

</div>

I am using the Java client and when using DQL queries it works all fine. When trying to use GraphQL queries it seems that these are not working. Could it be that the Java client only supports DQL? Using 20.03.3 java client.

---

<div class="post-metadata">

**Author:** ![abhimanyusinghgaur](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/abhimanyusinghgaur/32/2980_2.png) [@abhimanyusinghgaur](https://discuss.dgraph.io/u/abhimanyusinghgaur)\
**Post date:** [December 21, 2020, 8:02am UTC](https://discuss.dgraph.io/t/does-java-client-support-graphql/11999/2 "2020-12-21T08:02:22Z")

</div>

True, Java client, and the Dgraph clients for other languages support only DQL.

GraphQL is not supported by Dgraph clients. Google should be able to find plenty of GraphQL clients in your choice of the language.

---

<div class="post-metadata">

**Author:** ![mkerkhoff](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mkerkhoff/32/5734_2.png) [@mkerkhoff](https://discuss.dgraph.io/u/mkerkhoff)\
**Post date:** [December 21, 2020, 8:35am UTC](https://discuss.dgraph.io/t/does-java-client-support-graphql/11999/3 "2020-12-21T08:35:58Z")

</div>

@abhimanyusinghgaur Thanks for your quick answer. No worries. Just wanted to check. Will continue with the current approach using DQL.

---

<div class="post-metadata">

**Author:** ![fossrocks](https://avatars.discourse-cdn.com/v4/letter/f/6de8d8/32.png) [@fossrocks](https://discuss.dgraph.io/u/fossrocks)\
**Post date:** [July 21, 2021, 2:35am UTC](https://discuss.dgraph.io/t/does-java-client-support-graphql/11999/4 "2021-07-21T02:35:37Z")

</div>

So it means, that if the graphql schema is to be populated within a dgraph instance across the network, we’ll have to POST it via curl/http call the /admin/schema endpoint. No such method provided by the java client.

---

<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:** [July 21, 2021, 3:16pm UTC](https://discuss.dgraph.io/t/does-java-client-support-graphql/11999/5 "2021-07-21T15:16:03Z")

</div>

> [@fossrocks](#):
>
> No such method provided by the java client.

If you use GraphQL you must to use a GraphQL client/lib/package. Forget Dgraph’s clients. You need them if you gonna use DQL only. Also, I think that any GraphQL client has a method to populate the Schema. Need to check,

Cheers.
