Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9879

GraphQL schema creation fails for custom query servlet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • GraphQL Core 0.0.6
    • None
    • GraphQL
    • None

    Description

      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:

      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 */

      );

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: