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(`
|
const result = await graphql(`
|
||||||
{
|
{
|
||||||
allChallengeNode(
|
allChallengeNode(
|
||||||
sort: {
|
sort: [
|
||||||
fields: [
|
{ challenge: { superOrder: ASC } }
|
||||||
challenge___superOrder
|
{ challenge: { order: ASC } }
|
||||||
challenge___order
|
{ challenge: { challengeOrder: ASC } }
|
||||||
challenge___challengeOrder
|
]
|
||||||
]
|
|
||||||
}
|
|
||||||
) {
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
|
|||||||
Reference in New Issue
Block a user