@@ -28,8 +28,8 @@ const documents = {
28
28
"\n query GetCart {\n cart {\n ...CartContent\n }\n }\n \n" : types . GetCartDocument ,
29
29
"\n mutation UpdateCartItemQuantities($items: [CartItemQuantityInput]) {\n updateItemQuantities(input: { items: $items }) {\n cart {\n ...CartContent\n }\n items {\n ...CartItemContent\n }\n }\n }\n \n \n" : types . UpdateCartItemQuantitiesDocument ,
30
30
"\n mutation EmptyCart {\n emptyCart(input: {}) {\n cart {\n contents {\n nodes {\n key\n }\n }\n }\n }\n }\n" : types . EmptyCartDocument ,
31
- "\n query Categories {\n productCategories(first: 1000 ) {\n nodes {\n id: databaseId\n name\n parentId: parentDatabaseId\n }\n }\n }\n" : types . CategoriesDocument ,
32
- "\n query GetMainCategories {\n productCategories(where: { parent: null , orderby: TERM_ORDER }) {\n edges {\n node {\n id: databaseId\n name\n image {\n id: databaseId\n sourceUrl\n }\n }\n }\n }\n }\n" : types . GetMainCategoriesDocument ,
31
+ "\n query GetAllCategories($first: Int) {\n productCategories(\n where: { orderby: TERM_ORDER, order: ASC }\n first: $first\n ) {\n nodes {\n id: databaseId\n name\n parentId: parentDatabaseId\n image {\n id: databaseId\n sourceUrl\n }\n }\n }\n }\n " : types . GetAllCategoriesDocument ,
32
+ "\n query GetMainCategories($parent: Int, $first: Int) {\n productCategories(\n where: { parent: $parent , orderby: TERM_ORDER }\n first: $first\n ) {\n edges {\n node {\n id: databaseId\n name\n image {\n id: databaseId\n sourceUrl\n }\n }\n }\n }\n }\n" : types . GetMainCategoriesDocument ,
33
33
"\n query GetCustomerBilling {\n customer {\n billing {\n firstName\n lastName\n address1\n state\n city\n phone\n postcode\n }\n }\n }\n" : types . GetCustomerBillingDocument ,
34
34
"\n query GetCustomerSession {\n customer {\n sessionToken\n }\n }\n" : types . GetCustomerSessionDocument ,
35
35
"\n query GetCustomerProfile {\n customer {\n id\n firstName\n lastName\n username\n orderCount\n }\n }\n" : types . GetCustomerProfileDocument ,
@@ -122,11 +122,11 @@ export function graphql(source: "\n mutation EmptyCart {\n emptyCart(input:
122
122
/**
123
123
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
124
124
*/
125
- export function graphql ( source : "\n query Categories {\n productCategories(first: 1000 ) {\n nodes {\n id: databaseId\n name\n parentId: parentDatabaseId\n }\n }\n }\n" ) : ( typeof documents ) [ "\n query Categories {\n productCategories(first: 1000 ) {\n nodes {\n id: databaseId\n name\n parentId: parentDatabaseId\n }\n }\n }\n" ] ;
125
+ export function graphql ( source : "\n query GetAllCategories($first: Int) {\n productCategories(\n where: { orderby: TERM_ORDER, order: ASC }\n first: $first\n ) {\n nodes {\n id: databaseId\n name\n parentId: parentDatabaseId\n image {\n id: databaseId\n sourceUrl\n }\n }\n }\n }\n " ) : ( typeof documents ) [ "\n query GetAllCategories($first: Int) {\n productCategories(\n where: { orderby: TERM_ORDER, order: ASC }\n first: $first\n ) {\n nodes {\n id: databaseId\n name\n parentId: parentDatabaseId\n image {\n id: databaseId\n sourceUrl\n } \n }\n }\n }\n" ] ;
126
126
/**
127
127
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
128
128
*/
129
- export function graphql ( source : "\n query GetMainCategories {\n productCategories(where: { parent: null , orderby: TERM_ORDER }) {\n edges {\n node {\n id: databaseId\n name\n image {\n id: databaseId\n sourceUrl\n }\n }\n }\n }\n }\n" ) : ( typeof documents ) [ "\n query GetMainCategories {\n productCategories(where: { parent: null , orderby: TERM_ORDER }) {\n edges {\n node {\n id: databaseId\n name\n image {\n id: databaseId\n sourceUrl\n }\n }\n }\n }\n }\n" ] ;
129
+ export function graphql ( source : "\n query GetMainCategories($parent: Int, $first: Int) {\n productCategories(\n where: { parent: $parent , orderby: TERM_ORDER }\n first: $first\n ) {\n edges {\n node {\n id: databaseId\n name\n image {\n id: databaseId\n sourceUrl\n }\n }\n }\n }\n }\n" ) : ( typeof documents ) [ "\n query GetMainCategories($parent: Int, $first: Int) {\n productCategories(\n where: { parent: $parent , orderby: TERM_ORDER }\n first: $first\n ) {\n edges {\n node {\n id: databaseId\n name\n image {\n id: databaseId\n sourceUrl\n }\n }\n }\n }\n }\n" ] ;
130
130
/**
131
131
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
132
132
*/
0 commit comments