From c24a5bdf869ac46d67278b2799ff60ff703d60cb Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Tue, 3 Mar 2026 02:41:02 +0530 Subject: [PATCH] chore(client): updated GQL syntax (#66136) --- .../Challenges/utils/fetch-all-curriculum-data.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/client/src/templates/Challenges/utils/fetch-all-curriculum-data.tsx b/client/src/templates/Challenges/utils/fetch-all-curriculum-data.tsx index f19cf958cf8..b0bbf297ffc 100644 --- a/client/src/templates/Challenges/utils/fetch-all-curriculum-data.tsx +++ b/client/src/templates/Challenges/utils/fetch-all-curriculum-data.tsx @@ -41,13 +41,11 @@ export function useFetchAllCurriculumData(): void { }: AllCurriculumData = useStaticQuery(graphql` query GetAllCurriculumData { allChallengeNode( - sort: { - fields: [ - challenge___superOrder - challenge___order - challenge___challengeOrder - ] - } + sort: [ + { challenge: { superOrder: ASC } } + { challenge: { order: ASC } } + { challenge: { challengeOrder: ASC } } + ] ) { nodes { challenge {