Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zyhou/gatsby-sort-field-date
Bug with setFieldsOnGraphQLNodeType function
https://github.com/zyhou/gatsby-sort-field-date
Last synced: 8 days ago
JSON representation
Bug with setFieldsOnGraphQLNodeType function
- Host: GitHub
- URL: https://github.com/zyhou/gatsby-sort-field-date
- Owner: zyhou
- License: mit
- Created: 2018-08-13T09:43:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-13T10:03:47.000Z (over 6 years ago)
- Last Synced: 2024-11-06T13:47:38.310Z (about 2 months ago)
- Language: JavaScript
- Size: 825 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-starter-blog
[[V2] Bug with setFieldsOnGraphQLNodeType and sort fields - MarkdownRemark on Gatsby](https://github.com/gatsbyjs/gatsby/issues/7274)
- npm i
- npm run develop
- Go to graphiQL (http://localhost:8000/___graphql)
- Copy this query
```js
{
allMarkdownRemark(sort: { fields: [date], order: DESC }, limit: 1000) {
edges {
node {
date
fields {
slug
}
frontmatter {
title
date
}
}
}
}
}
```
You can see the result isn't filter by `date`