Expand my Community achievements bar.

AEM grapql endpoint restrict to a folder

Avatar

Level 4

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.

1 Reply