getLearningPath method

Future<LearningPathModel> getLearningPath(
  1. String pathId
)

Implementation

Future<LearningPathModel> getLearningPath(String pathId) async {
  final response = await _client
      .from('learning_paths')
      .select('*, learning_path_steps(*, domains(name))')
      .eq('id', pathId)
      .single();
  return LearningPathModel.fromJson(response);
}