Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`