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 StringFETCHER_DIRECTIVEstatic StringFETCHER_NAMEstatic StringFETCHER_OPTIONSstatic StringFETCHER_SOURCE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static graphql.ExecutionResultexecuteQuery(@NotNull SchemaProvider schemaProvider, @NotNull SlingDataFetcherSelector fetchersSelector, @NotNull SlingScalarsProvider scalarsProvider, @NotNull org.apache.sling.api.resource.Resource r, @NotNull String[] requestSelectors, @NotNull String query, @NotNull Map<String,Object> variables)static booleanisQueryValid(@NotNull SchemaProvider schemaProvider, @NotNull SlingDataFetcherSelector fetchersSelector, @NotNull SlingScalarsProvider scalarsProvider, @NotNull org.apache.sling.api.resource.Resource r, @NotNull String[] requestSelectors, @NotNull 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 static graphql.ExecutionResult executeQuery(@NotNull @NotNull SchemaProvider schemaProvider, @NotNull @NotNull SlingDataFetcherSelector fetchersSelector, @NotNull @NotNull SlingScalarsProvider scalarsProvider, @NotNull @NotNull org.apache.sling.api.resource.Resource r, @NotNull @NotNull String[] requestSelectors, @NotNull @NotNull String query, @NotNull @NotNull Map<String,Object> variables) throws ScriptException- Throws:
ScriptException
-
isQueryValid
public static boolean isQueryValid(@NotNull @NotNull SchemaProvider schemaProvider, @NotNull @NotNull SlingDataFetcherSelector fetchersSelector, @NotNull @NotNull SlingScalarsProvider scalarsProvider, @NotNull @NotNull org.apache.sling.api.resource.Resource r, @NotNull @NotNull String[] requestSelectors, @NotNull @NotNull String query, Map<String,Object> variables)
-
-