GraphQL filter on order query does not work

Hey @phester17 , this is a great question.

I’m just testing on my own here, as well as consulting our documentation on search query syntax and it seems to be working as expected.

Term search is a case insensitive search of all documents, however with a field search, the field is case sensitive and if invalid, it’s ignored and all results are returned.

For example, using fulfillment_status: unfulfilled, the actual status is case insensitive and works either way:

fulfillment_status: unfulfilled

fulfillment_status: UNFULFILLED

Both will work, however

Fulfillment_Status: unfulfilled will not work as the field we are querying remains case sensitive.

Just to double check I wasn’t missing anything I tested on another field that hasn’t been mentioned here, discount_code:

query: “discount_code:product50” works just fine, as well query: “discount_code:PRODUCT50” also works, but query: “Discount_Code:product50” will be ignored.

Hope that helps clear it up!

  • Kyle G.