Forming joins with AEM queries using QueryBuilder API | Community
Skip to main content
March 14, 2022

Forming joins with AEM queries using QueryBuilder API

  • March 14, 2022
  • 1 reply
  • 1285 views

Is it possible to create joins on different node sets when querying AEM using the QueryBuilder API ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

lukasz-m
Community Advisor
Community Advisor
March 14, 2022

Hi @balaram_rudra, I do not think Query Builder API is supporting JOINs explicitly. At least there is nothing about it in the official Adobe documentation:

As a solution you could use SQL2 - this supports JOINs, here are some examples: https://drfits.com/jcr-sql2-query-with-examples/

You can also try extend Query Builder API developing your own PredicateEvaluator - to meet your requirements using Query Builder.

March 15, 2022

Thank you @lukasz-m . I wanted to try SQL2 queries however these query results are not pagination friendly when compared to Query Builder. I will try and implement custom predicates for joins