Is there a way to hide an aspect from returning wh...
# getting-started
s
Is there a way to hide an aspect from returning when browsing/searching entity? i.e. When get an entity from API, this field doesn't display; only display when getting this aspect specifically from API
m
@some-crayon-90964: Is this a frontend question or a question about the service API? If service API -> is this about an existing open-source API in datahub-gms or an extension you are building?
c
If it is about Rest API, the client can specify the list of aspects as params, see search finder in
BaseSearchableEntityResource
for example: https://github.com/linkedin/datahub-gma/blob/758021b437f2ca59d0a03ea940c2b41c52a08bdc/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseSearchableEntityResource.java#L104
m
@some-crayon-90964: did that answer your question?
s
Hey guys, I have found a solution to this. Thanks to all of you guys