Skip to content

Commit

Permalink
feat(core): Add topLevelOnly filter to collection list query
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed May 10, 2023
1 parent 39e2204 commit 66b8c75
Show file tree
Hide file tree
Showing 15 changed files with 11,360 additions and 9,764 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ export type Collection = Node & {
languageCode?: Maybe<LanguageCode>;
name: Scalars['String'];
parent?: Maybe<Collection>;
parentId: Scalars['ID'];
position: Scalars['Int'];
productVariants: ProductVariantList;
slug: Scalars['String'];
Expand All @@ -457,6 +458,7 @@ export type CollectionFilterParameter = {
isPrivate?: InputMaybe<BooleanOperators>;
languageCode?: InputMaybe<StringOperators>;
name?: InputMaybe<StringOperators>;
parentId?: InputMaybe<IdOperators>;
position?: InputMaybe<NumberOperators>;
slug?: InputMaybe<StringOperators>;
updatedAt?: InputMaybe<DateOperators>;
Expand All @@ -478,6 +480,7 @@ export type CollectionListOptions = {
sort?: InputMaybe<CollectionSortParameter>;
/** Takes n results, for use in pagination */
take?: InputMaybe<Scalars['Int']>;
topLevelOnly?: InputMaybe<Scalars['Boolean']>;
};

/**
Expand All @@ -494,6 +497,7 @@ export type CollectionSortParameter = {
description?: InputMaybe<SortOrder>;
id?: InputMaybe<SortOrder>;
name?: InputMaybe<SortOrder>;
parentId?: InputMaybe<SortOrder>;
position?: InputMaybe<SortOrder>;
slug?: InputMaybe<SortOrder>;
updatedAt?: InputMaybe<SortOrder>;
Expand Down
Loading

0 comments on commit 66b8c75

Please sign in to comment.