Magento2 How to filter products that have special price using GraphQL?

I want to get the collection of products in Response of product query in GraphQL that have special price.

How can I achieve this?

2 Answers 2


For 'Special To' to 'Special From' filter:

Magento Admin > Stores > Attributes > Product:

Search these attributes and edit :

Attributes: special_to_date, special_from_date

Storefront Properties >

Use in Search : Yes

Visible in Advanced Search fields : Yes

Used in Sorting in Product Listing : Yes enter image description here


Use special_price in your products graphql query and apply filters

  • Hi can you provide graphql query
    – Arjun
    Feb 16, 2022 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.