Class GraphQLResourceQuery
- java.lang.Object
-
- org.apache.sling.graphql.core.engine.GraphQLResourceQuery
-
public class GraphQLResourceQuery extends Object
Run a GraphQL query in the context of a Sling Resource
-
-
Field Summary
Fields Modifier and Type Field Description static String
FETCHER_DIRECTIVE
static String
FETCHER_NAME
static String
FETCHER_OPTIONS
static String
FETCHER_SOURCE
-
Constructor Summary
Constructors Constructor Description GraphQLResourceQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description graphql.ExecutionResult
executeQuery(SchemaProvider schemaProvider, SlingDataFetcherSelector fetchersSelector, SlingScalarsProvider scalarsProvider, org.apache.sling.api.resource.Resource r, String[] requestSelectors, String query, Map<String,Object> variables)
-
-
-
Field Detail
-
FETCHER_DIRECTIVE
public static final String FETCHER_DIRECTIVE
- See Also:
- Constant Field Values
-
FETCHER_NAME
public static final String FETCHER_NAME
- See Also:
- Constant Field Values
-
FETCHER_OPTIONS
public static final String FETCHER_OPTIONS
- See Also:
- Constant Field Values
-
FETCHER_SOURCE
public static final String FETCHER_SOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
executeQuery
public graphql.ExecutionResult executeQuery(SchemaProvider schemaProvider, SlingDataFetcherSelector fetchersSelector, SlingScalarsProvider scalarsProvider, org.apache.sling.api.resource.Resource r, String[] requestSelectors, String query, Map<String,Object> variables) throws ScriptException
- Throws:
ScriptException
-
-