Unfortunately, I don't think there is any OOB mechanism available to index the graphQL queries. You can persist the queries and cache it at the dispatcher and CDN layer which will ultimately improve the performance of the requesting client application.
Kindly refer to the following link that will provide you more insights:-
Unfortunately, I don't think there is any OOB mechanism available to index the graphQL queries. You can persist the queries and cache it at the dispatcher and CDN layer which will ultimately improve the performance of the requesting client application.
Kindly refer to the following link that will provide you more insights:-