Skip to content

Commit f55d88d

Browse files
authored
docs: Update node-model.js to new sort syntax (#38515)
As per #37477, the nodeModel can use the new sort syntax
1 parent 6674ad6 commit f55d88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/schema/node-model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class LocalNodeModel {
327327
* const { entries, totalCount } = await findAll({
328328
* type: `MyType`,
329329
* query: {
330-
* sort: { fields: [`date`], order: [`desc`] },
330+
* sort: { date: `desc` },
331331
* filter: { published: { eq: false } },
332332
* },
333333
* })

0 commit comments

Comments
 (0)