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

GraphQL query cache key does not take selectors into account

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Invalid
    • GraphQL Core 0.0.6
    • None
    • GraphQL
    • None

    Description

      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:

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

      I'll submit a pull request.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: