mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): use new sorting syntax for graphql in gatsby-node.js (#65849)
This commit is contained in:
@@ -258,13 +258,11 @@ exports.createPagesStatefully = async function ({ graphql, actions }) {
|
||||
const result = await graphql(`
|
||||
{
|
||||
allChallengeNode(
|
||||
sort: {
|
||||
fields: [
|
||||
challenge___superOrder
|
||||
challenge___order
|
||||
challenge___challengeOrder
|
||||
]
|
||||
}
|
||||
sort: [
|
||||
{ challenge: { superOrder: ASC } }
|
||||
{ challenge: { order: ASC } }
|
||||
{ challenge: { challengeOrder: ASC } }
|
||||
]
|
||||
) {
|
||||
edges {
|
||||
node {
|
||||
|
||||
Reference in New Issue
Block a user