내 커뮤니티 업적 표시줄을 확대합니다.

해결됨

Graphiql interface is working for only specific path.

Avatar

Level 1

Graphiql interface is working for only specific set of query.

/aem/graphiql.html

 

how to configure to include all the query paths.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 2

Hi,
I created a folder called persistentQueries under /conf/{Business Unit}/settings/graphql/persistentQueries(my queries are there) to store all the queries. I used the /aem/graphiql.html interface to add them. Maybe you need to have the same kind of folder persistentQueries.

Please note that some operators only work if the GraphQL model type matches the data type used in the query (e.g., number, string, etc.).

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Level 1

All persistent graphql endpoints are added in the below path

/libs/cq/graphql/sites/admin/content/console.html

 

Only first endpoint queries are added to the Graphiql interface rest are not shown,

 

 

Avatar

Community Advisor

Hi @BowyaRa 

 

Can you please elaborate your issue !!

 

Avatar

정확한 답변 작성자:
Level 2

Hi,
I created a folder called persistentQueries under /conf/{Business Unit}/settings/graphql/persistentQueries(my queries are there) to store all the queries. I used the /aem/graphiql.html interface to add them. Maybe you need to have the same kind of folder persistentQueries.

Please note that some operators only work if the GraphQL model type matches the data type used in the query (e.g., number, string, etc.).

Avatar

Level 4

Hi @BowyaRa,

I hope the response shared above helped address your question. If it did, please mark it as "correct reply"— this helps others in the community find helpful solutions more easily.

If you’re still facing any more challenges, please feel free to continue the conversation here. We’re happy to support further.