You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Andreas Schaefer (Jira)" <ji...@apache.org> on 2020/10/19 18:19:00 UTC
[jira] [Reopened] (SLING-9800) Extract a service to be able to
execute GraphQL queries directly
[ https://issues.apache.org/jira/browse/SLING-9800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Schaefer reopened SLING-9800:
-------------------------------------
The QueryExecutor.execute() and .validate() is requiring a Resource (queryResource) which must be a resource that points to the Endpoint
DefaultQueryExecutor.execute() -> prepareSchemaDefinition() -> DefaultSchemaProvider.
getSchema()
I would suggest to the user provides the path to the GraphQL Endpoint as a string and the DefaultSchemaProvider is creating an internal resource. So the method would look like this:
Map<String, Object> execute(String query, Map<String, Object> variables, String queryEndpoint, String[] selectors);
> Extract a service to be able to execute GraphQL queries directly
> ----------------------------------------------------------------
>
> Key: SLING-9800
> URL: https://issues.apache.org/jira/browse/SLING-9800
> Project: Sling
> Issue Type: Improvement
> Components: GraphQL
> Reporter: Radu Cotescu
> Assignee: Radu Cotescu
> Priority: Major
> Fix For: GraphQL Core 0.0.8
>
>
> In the current implementation of the GraphQL Core bundle queries can only be executed via a GraphQL Servlet that needs to be configured or via server-side scripts. It would be good if the queries could also be executed directly, without the need for a request.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)