Skip to content

Commit

Permalink
feat(core): Expose enabled field for Product in shop api (#2541)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisvigoureux authored Dec 15, 2023
1 parent 3b6d6ab commit f6f2975
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/common/src/generated-shop-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2535,6 +2535,7 @@ export type Product = Node & {
createdAt: Scalars['DateTime']['output'];
customFields?: Maybe<Scalars['JSON']['output']>;
description: Scalars['String']['output'];
enabled: Scalars['Boolean']['output'];
facetValues: Array<FacetValue>;
featuredAsset?: Maybe<Asset>;
id: Scalars['ID']['output'];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
type Product implements Node {
enabled: Boolean!
channels: [Channel!]!
}

Expand Down
1 change: 1 addition & 0 deletions packages/core/src/api/schema/common/product.type.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ type Product implements Node {
name: String!
slug: String!
description: String!
enabled: Boolean!
featuredAsset: Asset
assets: [Asset!]!
"Returns all ProductVariants"
Expand Down

0 comments on commit f6f2975

Please sign in to comment.