# How to use Facets in GQL

**URL:** <https://discuss.dgraph.io/t/how-to-use-facets-in-gql/10070>\
**Category:** Dgraph\
**Tags:** graphql, kind:question, dgraph, dql\
**Created:** [September 7, 2020, 11:16am UTC](https://discuss.dgraph.io/t/how-to-use-facets-in-gql/10070 "2020-09-07T11:16:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![spinelsun](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/spinelsun/32/4596_2.png) [@spinelsun](https://discuss.dgraph.io/u/spinelsun)\
**Post date:** [September 7, 2020, 11:16am UTC](https://discuss.dgraph.io/t/how-to-use-facets-in-gql/10070/1 "2020-09-07T11:16:03Z")

</div>

Hi,

Is there a way to use facets in GraphQL?

Thanks,  
Or

---

<div class="post-metadata">

**Author:** ![chewxy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chewxy/32/4339_2.png) [@chewxy](https://discuss.dgraph.io/u/chewxy)\
**Post date:** [September 7, 2020, 11:37am UTC](https://discuss.dgraph.io/t/how-to-use-facets-in-gql/10070/2 "2020-09-07T11:37:34Z")

</div>

Facets are not currently supported in GraphQL. It’s one of the most hotly requested topics though, so please do stand by

---

<div class="post-metadata">

**Author:** ![spinelsun](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/spinelsun/32/4596_2.png) [@spinelsun](https://discuss.dgraph.io/u/spinelsun)\
**Post date:** [September 7, 2020, 12:15pm UTC](https://discuss.dgraph.io/t/how-to-use-facets-in-gql/10070/4 "2020-09-07T12:15:52Z")

</div>

So is it possible to create a type in GQL and then expand it with facets using DQL?

---

<div class="post-metadata">

**Author:** ![chewxy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chewxy/32/4339_2.png) [@chewxy](https://discuss.dgraph.io/u/chewxy)\
**Post date:** [September 7, 2020, 12:20pm UTC](https://discuss.dgraph.io/t/how-to-use-facets-in-gql/10070/5 "2020-09-07T12:20:06Z")

</div>

I’m gonna defer this question to someone better at GraphQL than I am. I’m sadly but a newbie at this.

@abhimanyusinghgaur, some help?

---

<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:** [September 7, 2020, 12:28pm UTC](https://discuss.dgraph.io/t/how-to-use-facets-in-gql/10070/6 "2020-09-07T12:28:51Z")

</div>

Yes! that is possible.

You will only be able to query/mutate facets from DQL. There is no way at present to use facets in GraphQL as Chewxy pointed.

---

<div class="post-metadata">

**Author:** ![chewxy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chewxy/32/4339_2.png) [@chewxy](https://discuss.dgraph.io/u/chewxy)\
**Post date:** [September 7, 2020, 2:30pm UTC](https://discuss.dgraph.io/t/how-to-use-facets-in-gql/10070/7 "2020-09-07T14:30:04Z")

</div>

2 posts were split to a new topic: [@hasInverse GraphQL to DQL mapping](https://discuss.dgraph.io/t/hasinverse-graphql-to-dql-mapping/10077)
