Filter query different "fulfillment_status: shipped" works instead "fulfillment_status:fulfilled"

Solved
agds23
Tourist
4 0 2

The code below works bringing only "FULFILLED". I found it on the internet

But it is different from the documentation.

 

{
  orders(first: 3, query: "fulfillment_status:shipped") {
    edges {
      node {
        id
        name
        displayFulfillmentStatus
      }
    }
 

 

And this one below brings all "FULFILLED" and also "UNFULFILLED".

 

{
  orders(first: 3, query: "fulfillment_status:fulfilled") {
    edges {
      node {
        id
        name
        displayFulfillmentStatus
      }
    }
  }
}

 

May anyone explain? API 2021-04 (Latest)

Link DOC below

https://shopify.dev/docs/admin-api/graphql/reference/orders/orderdisplayfulfillmentstatus 

 

GrahamS
Shopify Staff
Shopify Staff
83 16 16

This is an accepted solution.

Hey @agds23 !

Filtering orders by fulfillment via GraphQL currently uses the same parameters that filtering a GET via REST would. The following parameters are supported:

21-53-btid0-fvx4s

We're looking at having the documentation updated to be more clear, but hopefully this helps in the meantime!

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

agds23
Tourist
4 0 2

Thanks for the answer.

In the GraphQL API this information is not included.

I managed to use it because I found something on the internet and also decided to test it with the REST API parameters.

But it can be difficult for someone starting straight with GraphQL to have this figured out.

Please, update in GraphQL API DOC.

Thanks, good work.