Package org.apache.sling.graphql.api
Interface SlingDataFetcher<T>
-
@ConsumerType public interface SlingDataFetcher<T>
Retrieves data for a given GraphQL field. Services must be registered with a NAME property with a unique value that's matched with the corresponding @directive in the GraphQL Schema.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME_SERVICE_PROPERTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get(@NotNull SlingDataFetcherEnvironment e)
-
-
-
Field Detail
-
NAME_SERVICE_PROPERTY
static final String NAME_SERVICE_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
@Nullable T get(@NotNull @NotNull SlingDataFetcherEnvironment e) throws Exception
- Throws:
Exception
-
-