Skip to content

Commit

Permalink
chore: misc gatsby GraphQL syntax updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Dec 16, 2024
1 parent 23247bd commit 2dd6935
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion www/src/components/ComponentsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const componentsQuery = graphql`
}
frontmatter: { type: {} }
}
sort: { fields: frontmatter___title }
sort: { frontmatter: {title: ASC} }
) {
all: nodes {
...ComponentPage
Expand Down
6 changes: 3 additions & 3 deletions www/src/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ const menuQuery = graphql`
}
frontmatter: { type: {} }
}
sort: { fields: frontmatter___title }
sort: { frontmatter: {title: ASC} }
) {
categories: group(field: frontmatter___categories) {
categories: group(field: {frontmatter: {categories: SELECT}}) {
nodes {
...ComponentPage
}
fieldValue
}
types: group(field: frontmatter___type) {
types: group(field: {frontmatter: {type: SELECT}}) {
nodes {
...ComponentPage
}
Expand Down
4 changes: 2 additions & 2 deletions www/src/pages/foundations/colors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,13 @@ export const query = graphql`
{
allCssUtilityClasses(
filter: { declarations: { regex: "/color/" }, isUtility: { eq: true } }
sort: { fields: selector, order: ASC }
sort: {selector: ASC}
) {
nodes {
selector
declarations
}
distinct(field: selector)
distinct(field: {selector: SELECT})
}
}
`;
2 changes: 1 addition & 1 deletion www/src/pages/foundations/css-utilities.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const pageQuery = graphql`
{
utilities: allCssUtilityClasses(
filter: {isUtility: {eq: true}},
sort: {fields: selector, order: ASC}
sort: {selector: ASC}
) {
nodes {
selector
Expand Down
2 changes: 1 addition & 1 deletion www/src/pages/status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function StatusPage({ pageContext }) {
<h3>Components Status</h3>
<StaticQuery
query={graphql`query ComponentStatusQuery {
allMdx(filter: {frontmatter: {type: {eq: "component"}}}, sort: {fields: frontmatter___title}) {
allMdx(filter: {frontmatter: {type: {eq: "component"}}}, sort: {frontmatter: {title: ASC}}) {
nodes {
frontmatter {
designStatus
Expand Down

0 comments on commit 2dd6935

Please sign in to comment.