Как я могу передать переменную useQuery из компонента prop?

#javascript #reactjs #graphql #frontend #apollo Вопрос: У меня есть такой запрос : const GET_ANALYTICS = gql` query($courseId: String) { getStudentsAnalytics(courseId: $courseId) { totalStudents, studentsNotStartedCoursesYetPercentage, studentsFinishedCoursesPercentage, studentsInProgressCoursesPercentage, studentsCompletedQuizzesPercentage, studentsFailedQuizzesPercentage, studentsInProgressQuizzesPercentage }…

Продолжить чтениеКак я могу передать переменную useQuery из компонента prop?