[ 
https://issues.apache.org/jira/browse/SLING-9800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17221811#comment-17221811
 ] 

Andreas Schaefer commented on SLING-9800:
-----------------------------------------

[~bdelacretaz] I am working on the AEM GraphQL Persisted Queries and a client 
is calling the PQ servlet instead of an GraphiQL endpoint. So the resource of 
the request is the Servlet and using that resource is not working out 
(DefaultSchemaProvider.getSchema() returns an empty string). When using a Mock 
Resource with these values:

new MockResource(
  "/apps/graphql-enablement/content/endpoint", /* path */
  "graphql-enablement/components/endpoint", /* resourceType */
  null, /* resourceSuperType */
  null, /* metadata */
  resourceResolver,
  new ValueMapDecorator(new HashMap<String, Object>() {{
    put("", "");
  }}), /* properties */
  null /* parent */
);

- Andy

> Extract a service to be able to execute GraphQL queries directly
> ----------------------------------------------------------------
>
>                 Key: SLING-9800
>                 URL: https://issues.apache.org/jira/browse/SLING-9800
>             Project: Sling
>          Issue Type: Improvement
>          Components: GraphQL
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>            Priority: Major
>             Fix For: GraphQL Core 0.0.8
>
>
> In the current implementation of the GraphQL Core bundle queries can only be 
> executed via a GraphQL Servlet that needs to be configured or via server-side 
> scripts. It would be good if the queries could also be executed directly, 
> without the need for a request.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to