Skip to content

Commit

Permalink
Update node-model.js to new sort syntax
Browse files Browse the repository at this point in the history
As per gatsbyjs#37477, the nodeModel can use the new sort syntax
  • Loading branch information
laurenskling committed Sep 1, 2023
1 parent d46c815 commit 146e805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/schema/node-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class LocalNodeModel {
* const { entries, totalCount } = await findAll({
* type: `MyType`,
* query: {
* sort: { fields: [`date`], order: [`desc`] },
* sort: { date: `desc` },
* filter: { published: { eq: false } },
* },
* })
Expand Down

0 comments on commit 146e805

Please sign in to comment.