Skip to content

Commit

Permalink
increase default limit of results to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
ragudesign committed Jun 23, 2022
1 parent d489dd5 commit ea9a31d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const getCatSlug = `query getCatSlug($slug: [String!]) {
nodes {
id
name
kbs(where: {orderby: {field: DATE, order: DESC}}) {
kbs(where: {orderby: {field: DATE, order: DESC}}, first:1000) {
nodes {
id
modified
Expand Down Expand Up @@ -49,7 +49,7 @@ export const getLatestKbs = `query getLatestKbs {

// get slugs
export const getKbSlugs = `query getKbSlugs {
kbs {
kbs(first:1000) {
nodes {
slug
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function fetcher(query) {
}

const query = `query getTitleSlugs {
kbs {
kbs(first:1000) {
nodes {
title
slug
Expand Down

0 comments on commit ea9a31d

Please sign in to comment.