package tutorials;
import io.sphere.sdk.categories.Category;
import io.sphere.sdk.categories.queries.CategoryQuery;
import io.sphere.sdk.client.SphereClient;
import io.sphere.sdk.queries.PagedQueryResult;
import java.util.concurrent.CompletionStage;
public class CategoryExamples {
public static CompletionStage<PagedQueryResult<Category>> retrieveAllCategories(final SphereClient client) {
//startExample[retrieveCategories]
final CategoryQuery categoryQuery = CategoryQuery.of();
return client.execute(categoryQuery);
//endExample[retrieveCategories]
}
}