split category fetching from menu items
This commit is contained in:
@@ -1554,12 +1554,12 @@ export type VendorRelationResponseCollection = {
|
||||
nodes: Array<Vendor>;
|
||||
};
|
||||
|
||||
export type CategoriesListQueryVariables = Exact<{
|
||||
group?: InputMaybe<Scalars['String']['input']>;
|
||||
export type CategoryQueryVariables = Exact<{
|
||||
slug: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
|
||||
export type CategoriesListQuery = { __typename?: 'Query', categories: Array<{ __typename?: 'Category', documentId: string, slug: string, title?: string | null, sortOrder: number, group: Enum_Category_Group, badge?: string | null } | null> };
|
||||
export type CategoryQuery = { __typename?: 'Query', categories: Array<{ __typename?: 'Category', slug: string, title?: string | null, description?: string | null, group: Enum_Category_Group, badge?: string | null, vendors: Array<{ __typename?: 'Vendor', slug: string, title?: string | null, description?: string | null, products?: Array<{ __typename?: 'ComponentSharedString', id: string, value: string } | null> | null } | null> } | null> };
|
||||
|
||||
export type HomePageQueryVariables = Exact<{ [key: string]: never; }>;
|
||||
|
||||
@@ -1602,18 +1602,26 @@ export class TypedDocumentString<TResult, TVariables>
|
||||
}
|
||||
}
|
||||
|
||||
export const CategoriesListDocument = new TypedDocumentString(`
|
||||
query CategoriesList($group: String) {
|
||||
categories(filters: {group: {eq: $group}}) {
|
||||
documentId
|
||||
export const CategoryDocument = new TypedDocumentString(`
|
||||
query Category($slug: String!) {
|
||||
categories(filters: {slug: {eq: $slug}}, pagination: {pageSize: 1}) {
|
||||
slug
|
||||
title
|
||||
sortOrder
|
||||
description
|
||||
group
|
||||
badge
|
||||
vendors(pagination: {pageSize: 200}) {
|
||||
slug
|
||||
title
|
||||
description
|
||||
products(pagination: {pageSize: 200}) {
|
||||
id
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`) as unknown as TypedDocumentString<CategoriesListQuery, CategoriesListQueryVariables>;
|
||||
`) as unknown as TypedDocumentString<CategoryQuery, CategoryQueryVariables>;
|
||||
export const HomePageDocument = new TypedDocumentString(`
|
||||
query HomePage {
|
||||
homePage {
|
||||
|
||||
Reference in New Issue
Block a user