AEM grapql endpoint restrict to a folder | Community
Skip to main content
Amit-Tiwari
Level 4
March 15, 2022

AEM grapql endpoint restrict to a folder

  • March 15, 2022
  • 1 reply
  • 845 views

Hello all,

I have created a content fragment model and enable the graphql endpoint for the same & a react component to fetch data. This setup is working fine.
Now I wanted to use the same component  for a different site, but the problem is graphql fetching the data from all content fragment created using the same model.
My question is
Can I create different endpoints for different structure using the same content frag model. for example

endpoint1 fetch data from /content/site1 only

endpoint2 fetch data from /content/site2 only

but both use a same content fragment model.

@kautuk_sahni Any suggestions or alternatives are welcome.

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

1 reply

Amit-Tiwari
Level 4
April 19, 2022

Anyone?