Skip to content

Commit

Permalink
Merge pull request #866 from bakaphp/feat-variant-chanel-search
Browse files Browse the repository at this point in the history
Refact: add search
  • Loading branch information
kaioken authored Jan 29, 2024
2 parents 28a3a8e + 91df11d commit afb0a47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public function allVariantsPublishedInChannelFilterByAttributes(

$channel = Channels::getByUuid($channelUuid);

//set index
ModelsVariants::setSearchIndex((int) $channel->companies_id);

/**
* @var Builder
*/
Expand Down
1 change: 1 addition & 0 deletions graphql/schemas/Inventory/variantChannel.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ extend type Query {
channelVariantsFilterByAttributes(
id: ID!
attributes: Mixed
search: String @search
where: _ @whereConditions(columns: ["slug", "uuid", "name", "sku"])
orderBy: _
@orderBy(
Expand Down

0 comments on commit afb0a47

Please sign in to comment.