You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (Jira)" <ji...@apache.org> on 2020/11/05 14:30:00 UTC

[jira] [Updated] (SLING-9879) GraphQL schema creation fails for custom query servlet

     [ https://issues.apache.org/jira/browse/SLING-9879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz updated SLING-9879:
---------------------------------------
    Fix Version/s:     (was: GraphQL Core 0.0.8)
                   GraphQL Core 0.0.10

> GraphQL schema creation fails for custom query servlet
> ------------------------------------------------------
>
>                 Key: SLING-9879
>                 URL: https://issues.apache.org/jira/browse/SLING-9879
>             Project: Sling
>          Issue Type: Bug
>          Components: GraphQL
>    Affects Versions: GraphQL Core 0.0.6
>            Reporter: Bertrand Delacretaz
>            Priority: Major
>             Fix For: GraphQL Core 0.0.10
>
>
> As reported by [~andysch] in SLING-9800 - I'm extracting that specific issue from that ticket as I'd like to release that module.
> Andy says:
> bq. 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:
> bq. 
> bq. new MockResource(
> bq.   "/apps/graphql-enablement/content/endpoint", /* path */
> bq.   "graphql-enablement/components/endpoint", /* resourceType */
> bq.   null, /* resourceSuperType */
> bq.   null, /* metadata */
> bq.   resourceResolver,
> bq.   new ValueMapDecorator(new HashMap<String, Object>() {{
> bq.     put("", "");
> bq.   }}), /* properties */
> bq.   null /* parent */
> bq. );



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