You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Gilles Knobloch (Jira)" <ji...@apache.org> on 2020/09/16 15:17:00 UTC

[jira] [Updated] (SLING-9732) Friendly Names / Alias for persisted GraphQL queries

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

Gilles Knobloch updated SLING-9732:
-----------------------------------
    Summary: Friendly Names / Alias for persisted GraphQL queries  (was: Friendly Names for persisted GraphQL queries)

> Friendly Names / Alias for persisted GraphQL queries
> ----------------------------------------------------
>
>                 Key: SLING-9732
>                 URL: https://issues.apache.org/jira/browse/SLING-9732
>             Project: Sling
>          Issue Type: New Feature
>          Components: GraphQL
>            Reporter: Gilles Knobloch
>            Priority: Major
>
> The current implementation generates a URL with a hash, for instance \{{/persisted/9bae4aa26ea4b2e06889a1e02179e02a902211bf970185c45bceba537107e2fc}}
> It would be great to be able to specify a "friendly name" that an external application could use, for instance {{/persisted/listArticles}}
> Should probably have things like
> * POST - register a query, ensuring a unique name is used
> * PUT - to update existing query
> * DELETE - to remove a persisted query
> I wonder if there should be some namespacing for the query name, like {{/persisted/projectA/listArticles}} and {{/persisted/projectB/listArticles}} to give it more flexibility.
> And probably an endpoint for listing existing queries within such a scope.



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