Skip to content

Commit

Permalink
docs: Update node-model.js to new sort syntax (#38515)
Browse files Browse the repository at this point in the history
As per #37477, the nodeModel can use the new sort syntax
  • Loading branch information
laurenskling authored Sep 7, 2023
1 parent 6674ad6 commit f55d88d
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 f55d88d

Please sign in to comment.