# Check specify edg between nodes

**URL:** <https://discuss.dgraph.io/t/check-specify-edg-between-nodes/10640>\
**Category:** Dgraph\
**Tags:** kind:question\
**Created:** [September 28, 2020, 1:05pm UTC](https://discuss.dgraph.io/t/check-specify-edg-between-nodes/10640 "2020-09-28T13:05:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luke](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/luke/32/10557_2.png) [@luke](https://discuss.dgraph.io/u/luke)\
**Post date:** [September 28, 2020, 1:05pm UTC](https://discuss.dgraph.io/t/check-specify-edg-between-nodes/10640/1 "2020-09-28T13:05:10Z")

</div>

![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/5/5dc307b7ffcaa9e5b04b8b1755e3583383744394.png)  
i want to wirte a query to check whether the ‘friend’ is exists between A and B  
I have tried

```auto
node (func: eq(name 'A')){
uid
friend @filter(eq(friend,'B')){
uid
}
}

```

but nothing happened

---

<div class="post-metadata">

**Author:** ![RJKeevil](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/rjkeevil/32/2625_2.png) [@RJKeevil](https://discuss.dgraph.io/u/RJKeevil)\
**Post date:** [September 28, 2020, 2:07pm UTC](https://discuss.dgraph.io/t/check-specify-edg-between-nodes/10640/2 "2020-09-28T14:07:19Z")

</div>

I think @filter(eq(friend,‘B’)) should be @filter(eq(name,‘B’)) , you’re filtering on the name field of “node B”.
