Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Adjust dashboard queries

Marcin Gębala37fc0b6f9ee8
diff --git a/saleor/static/dashboard-next/categories/queries.ts b/saleor/static/dashboard-next/categories/queries.ts
index 1350950eed..e3e492f986 100644
--- a/saleor/static/dashboard-next/categories/queries.ts
+++ b/saleor/static/dashboard-next/categories/queries.ts
@@ -22,7 +22,7 @@ export const categoryDetailsFragment = gql`
export const rootCategories = gql`
query RootCategories {
- categories(level: 0) {
+ categories(level: 0, first: 20) {
edges {
node {
id
@@ -53,7 +53,7 @@ export const categoryDetails = gql`
) {
category(id: $id) {
...CategoryDetailsFragment
- children {
+ children(first: 20) {
edges {
node {
id
diff --git a/saleor/static/dashboard-next/products/queries.ts b/saleor/static/dashboard-next/products/queries.ts
index 2ff27f7136..e06780a076 100644
--- a/saleor/static/dashboard-next/products/queries.ts
+++ b/saleor/static/dashboard-next/products/queries.ts
@@ -233,7 +233,7 @@ const productDetailsQuery = gql`
product(id: $id) {
...Product
}
- collections {
+ collections(first: 20) {
edges {
node {
id
@@ -241,7 +241,7 @@ const productDetailsQuery = gql`
}
}
}
- categories {
+ categories(first: 20) {
edges {
node {
id
@@ -271,7 +271,7 @@ export const TypedProductVariantQuery = TypedQuery<
const productCreateQuery = gql`
query ProductCreateData {
- productTypes {
+ productTypes(first: 20) {
edges {
node {
id
@@ -291,7 +291,7 @@ const productCreateQuery = gql`
}
}
}
- collections {
+ collections(first: 20) {
edges {
node {
id
@@ -299,7 +299,7 @@ const productCreateQuery = gql`
}
}
}
- categories {
+ categories(first: 20) {
edges {
node {
id