{"id":747,"date":"2023-01-08T20:54:03","date_gmt":"2023-01-08T20:54:03","guid":{"rendered":"https:\/\/www.webshouters.com\/blog\/?p=747"},"modified":"2023-10-05T07:01:19","modified_gmt":"2023-10-05T07:01:19","slug":"get-all-order-using-graphql-in-magento-2","status":"publish","type":"post","link":"https:\/\/www.webshouters.com\/blog\/get-all-order-using-graphql-in-magento-2\/","title":{"rendered":"How to Get all Order using GraphQL in Magento 2?"},"content":{"rendered":"\n<p>To retrieve all orders using GraphQL in Magento 2, you can run the following query:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\">query {\n  orders {\n    items {\n      increment_id\n      status\n      created_at\n      grand_total\n      customer_firstname\n      customer_lastname\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>This query will return an array of orders, each with the <code>increment_id<\/code>, <code>status<\/code>, <code>created_at<\/code>, <code>grand_total<\/code>, <code>customer_firstname<\/code>, and <code>customer_lastname<\/code> fields. You can modify the query to include or exclude fields as needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To retrieve all orders using GraphQL in Magento 2, you can run the following query: This query will return an&#8230;<\/p>\n","protected":false},"author":3,"featured_media":869,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,25,13],"tags":[30,38],"class_list":["post-747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento","category-how-to","category-tips-tricks","tag-development","tag-graphql"],"jetpack_featured_media_url":"https:\/\/www.webshouters.com\/blog\/wp-content\/uploads\/2023\/01\/Magento2.png","_links":{"self":[{"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/posts\/747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/comments?post=747"}],"version-history":[{"count":1,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/posts\/747\/revisions"}],"predecessor-version":[{"id":748,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/posts\/747\/revisions\/748"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/media\/869"}],"wp:attachment":[{"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/media?parent=747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/categories?post=747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/tags?post=747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}