How to get all tags of a product in Cart line items(Graph Query)

We need a way to get all tags on a product, currently it doens’t seem to be possible

product {
hasTags(tags: [“perishable”]) {
hasTag
tag
}

We can pass static tags and then get the same value in ‘tag’ field. How we can make it dynamic?
Can’t we get all tag simply using Graph and then process it in function?