GraphQL ProductFilterInput
Requires Field to be a String
#14312
Labels
Component: Framework/Webapi
USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog
Event: distributed-cd
Distributed Contribution Day
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Every field of the
ProductFilterInput
input field inMagento_CatagolGraphQl::etc/graphql.xml
has the typeFilterTypeInput
. The problem here is thatFilterTypeInput
requires most of its arguments to be strings.For example, I might want to select products that do not have a special price set. This might be some query like:
The devdocs, and basic intuition seem to suggest this is okay. However, this doesn't work because
Magento_GraphQl::etc/graphql.xml
requires thenull
field inFilterTypeInput
to be a string.Preconditions
2.3-develop
, natch.Steps to reproduce
Expected result
Based on the documentation, I would expect this to be a legal query.
Receive a response like this:
Actual result
Response:
This also applies to other fields. For example, I was unable to filter products by category ids.
The text was updated successfully, but these errors were encountered: