# Exclude uid from response when using expand(\_all\_)

**URL:** <https://discuss.dgraph.io/t/exclude-uid-from-response-when-using-expand-all/17038>\
**Category:** GraphQL\
**Tags:** dgraph\
**Created:** [March 18, 2022, 1:50am UTC](https://discuss.dgraph.io/t/exclude-uid-from-response-when-using-expand-all/17038 "2022-03-18T01:50:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vardhaman\_Surana](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/vardhaman_surana/32/9675_2.png) [@vardhaman\_Surana](https://discuss.dgraph.io/u/vardhaman_Surana)\
**Post date:** [March 18, 2022, 1:50am UTC](https://discuss.dgraph.io/t/exclude-uid-from-response-when-using-expand-all/17038/1 "2022-03-18T01:50:48Z")

</div>

i am using dgraph from past 10 months, i recently upgraded to the latest version.  
in the earlier version if we don’t specify the uid predicate in the query with expand(\_all\_) , it was not included the response.  
something like  
{  
abc(func: type(ABC)) {  
expand(\_all\_)  
uid  
}  
}  
and i used this  
{  
abc(func: type(ABC)) {  
expand(\_all\_)  
}  
}  
for a feature in our project. Now in the latest release expand(\_all\_) is including the uid as well in the response which is breaking the functionality in the project.  
is there any way to exclude uid from json response when using expand(\_all\_) ?

---

<div class="post-metadata">

**Author:** ![vardhaman\_Surana](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/vardhaman_surana/32/9675_2.png) [@vardhaman\_Surana](https://discuss.dgraph.io/u/vardhaman_Surana)\
**Post date:** [March 25, 2022, 12:47am UTC](https://discuss.dgraph.io/t/exclude-uid-from-response-when-using-expand-all/17038/2 "2022-03-25T00:47:38Z")

</div>

Please Ignore … it is working as expected
