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/09/24 12:52:00 UTC

[jira] [Created] (SLING-9766) GraphQL query cache key does not take selectors into account

Bertrand Delacretaz created SLING-9766:
------------------------------------------

             Summary: GraphQL query cache key does not take selectors into account
                 Key: SLING-9766
                 URL: https://issues.apache.org/jira/browse/SLING-9766
             Project: Sling
          Issue Type: Task
          Components: GraphQL
    Affects Versions: GraphQL Core 0.0.6
            Reporter: Bertrand Delacretaz
            Assignee: Bertrand Delacretaz


I think bHash and cHash should be different here, as the selectors influence the query results and as such need to be taken into account:

{code}
        String selectors = "something"
        String bHash = provider.cacheQuery(queryText, path, null);
        String cHash = provider.cacheQuery(queryText, path, selectors);
{code}

I'll submit a pull request.



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