# What is the tilde operator in a query?

**URL:** <https://discuss.dgraph.io/t/what-is-the-tilde-operator-in-a-query/2333>\
**Category:** Users\
**Created:** [March 19, 2018, 10:02pm UTC](https://discuss.dgraph.io/t/what-is-the-tilde-operator-in-a-query/2333 "2018-03-19T22:02:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewnatali](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@matthewnatali](https://discuss.dgraph.io/u/matthewnatali)\
**Post date:** [March 19, 2018, 10:02pm UTC](https://discuss.dgraph.io/t/what-is-the-tilde-operator-in-a-query/2333/1 "2018-03-19T22:02:06Z")

</div>

Hello, I’m new and learning DGraph. As I was looking through the documentation I’ve come across the “~” operated in queries and not quite understood what it is doing.

[https://docs.dgraph.io/query-language/#inequality](https://docs.dgraph.io/query-language/#inequality){

genre(func: gt(count(~genre), 30000)){  
name@en  
~genre (first:1) {  
name@en  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![matthewnatali](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@matthewnatali](https://discuss.dgraph.io/u/matthewnatali)\
**Post date:** [March 19, 2018, 11:12pm UTC](https://discuss.dgraph.io/t/what-is-the-tilde-operator-in-a-query/2333/2 "2018-03-19T23:12:11Z")

</div>

Found my answer: [https://docs.dgraph.io/query-language/#reverse-edges](https://docs.dgraph.io/query-language/#reverse-edges)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [April 18, 2018, 11:12pm UTC](https://discuss.dgraph.io/t/what-is-the-tilde-operator-in-a-query/2333/3 "2018-04-18T23:12:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
