Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

GraphQL: Custom sort attributes #6468

Merged
merged 2 commits into from
Jan 27, 2020
Merged

Conversation

keharper
Copy link
Contributor

@keharper keharper commented Jan 27, 2020

Purpose of this pull request

This pull request (PR) adds information about using non-default sort attributes with the products query.

Affected DevDocs pages

Links to Magento source code

  • ...

whatsnew
Added information about using non-default sort attributes with the products query.

@keharper keharper self-assigned this Jan 27, 2020
@keharper keharper added 2.3.4 Magento 2.3.4 changes Internal Dev Differentiates work between community and Magento staff Technical Updates to the code or processes that alter the technical content of the doc labels Jan 27, 2020
@keharper keharper requested a review from cpartica January 27, 2020 18:12
@@ -133,6 +133,8 @@ Attribute | Data type | Description
{:.bs-callout-info}
If you use MySQL for searches and you specify `relevance` and another sorting attribute, the `relevance` results are always listed first. This limitation does not apply to [Elasticsearch]({{page.baseurl}}/config-guide/elasticsearch/configure-magento.html).

To enable sorting by an attribute that is not in the `ProductAttributeSortInput` object, set the **Stores** > Attributes > **Product** > <Attribute Name> > **Storefront Properties** > **Use in Search** and **Used in Sorting in Product Listing** fields to Yes.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@keharper
Copy link
Contributor Author

running tests

@keharper keharper merged commit 31f70fd into 2.3.4-develop Jan 27, 2020
@ghost
Copy link

ghost commented Jan 27, 2020

Hi @keharper, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@keharper keharper deleted the kh_graphql-sort-filter branch January 28, 2020 21:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.3.4 Magento 2.3.4 changes Internal Dev Differentiates work between community and Magento staff Technical Updates to the code or processes that alter the technical content of the doc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants