is it possible to get only the property's value from a node using JCR query?
I've been trying to parse a node property into a java object, it is a string type that holds my asset path (e.g /content/dam/test).
I'm using the JRC query below but it always returns the full node with all its properties.
SELECT asset.[jcr:content/data/master:image] FROM [dam:Asset] AS asset
WHERE ISDESCENDANTNODE(asset, [/content/dam])
AND asset.[jcr:content/data/cq:model] = '/conf/settings/dam/cfm/models/item'
AND asset.[jcr:content/data/master/name] IN ("A","B")
I was thinking of getting only the property's value, in this case the asset path: "/content/dam/test_cf"