Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to add /content/cq:graphql to the vault package

Avatar

Level 4

Adobe Experience Manager 2022.11.9850.20221116T162329Z-220900

 

I am trying to include the GraphQL endpoint in my content package. I have the path in the filter.xml of my maven project but when I attempt to build, I am getting a jackrabbit validation error.

 

[ERROR] ValidationViolation: "jackrabbit-filter: Node '/content/cq:graphql' is not contained in any of the filter rules", filePath=jcr_root\content\_cq_graphql\.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Node '/content/cq:graphql/myproject' is not contained in any of the filter rules", filePath=jcr_root\content\_cq_graphql\myproject\.content.xml

 

The filter in the filter.xml is as follows:

<filter root="/content/_cq_graphql"/>

 

What do I need to do extra to get this to build?

 

Thanks in advance. 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @Robert-Harper ,

 

Have you tried this?

<filter root="/content/cq:graphql"/>

 

This seems to be working.

 

Regards,

Nitesh

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

Hi @Robert-Harper ,

 

Have you tried this?

<filter root="/content/cq:graphql"/>

 

This seems to be working.

 

Regards,

Nitesh