How can I provide a GraphQL endpoint via my ui.content package?
I created a file .content.xml at src/main/content/jcr_root/content/cq:graphql with the following code.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
xmlns:rep="internal"
xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
xmlns:cq="http://www.day.com/jcr/cq/1.0"
jcr:primaryType="nt:folder"
jcr:mixinTypes="[rep:AccessControllable]">
<my-endpoint
jcr:primaryType="sling:Folder">
<endpoint
jcr:primaryType="nt:unstructured"
jcr:title="My Endpoint"
sling:resourceType="graphql/sites/components/endpoint"/>
</my-endpoint>
</jcr:root>
And my filter.xml defines
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/content/cq:graphql" mode="update"/>
</workspaceFilter>
But it does not install the desired nodes at installation.