0

Is it possible to return all orders for all customers using an integration setup and graphql?

I have found how to return orders for a customer, but in the example it requires generating a customer token which would require username/password which obv the integration doesnt have.

Is this something that can be done out of the box or does it require extending Magento in some way?

Thanks

1 Answer 1

0

Magento 2 GraphQL does not include the order query; you can only access customer orders. You can examine the available queries in Magento 2 by utilizing the 'IntrospectionQuery'. You need build custom graphQL schemas to get all orders.

query IntrospectionQuery {
  __schema {
    queryType {
      fields {
        name
        description
        type{
         name
         kind
        }
      }
    }
  }
}

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.