Query Builder
Can someone help me with this query.
I am trying to find all the nodes under content that have a sling:resourceType=
components/content/home/homeHeroTeaser I wrote the above as:
String query = '''
SELECT * FROM [nt:base] AS n
WHERE ISDESCENDANTNODE([/content])
AND n.[sling:resourceType]='components/content/home/homeHeroTeaser'
'''
In addition I would like add to this query a check that a node has a property link that has a value. How do I do that?