Created
May 17, 2020 23:38
-
-
Save njbmartin/6ca0bd79e0be5980652341ba79c2ebb3 to your computer and use it in GitHub Desktop.
Contentful GraphQL query with manual ordering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = useStaticQuery( | |
graphql` | |
query { | |
allContentfulRider(sort: { fields: order, order: ASC }) { | |
nodes { | |
id | |
slug | |
fullName | |
} | |
} | |
} | |
` | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment