# GraphQL Query REST migration

**URL:** <https://community.shopify.dev/t/graphql-query-rest-migration/11737>\
**Category:** GraphQL Admin API Troubleshooting\
**Tags:** rest-migration\
**Created:** [March 21, 2025, 1:42am UTC](https://community.shopify.dev/t/graphql-query-rest-migration/11737 "2025-03-21T01:42:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arthur\_Harrison](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Arthur\_Harrison](https://community.shopify.dev/u/Arthur_Harrison)\
**Post date:** [March 21, 2025, 1:42am UTC](https://community.shopify.dev/t/graphql-query-rest-migration/11737/1 "2025-03-21T01:42:48Z")

</div>

When using the REST API I was able to find out two things which I am having trouble locating now in GraphQL

Using the REST API I was able to access the ShippingLines.code property to tell me if the order was Standard or Express delivery.

Also we cater for Gift Wrapping and I was able to use the Note\_Attributes to check if the name was “gift-note”

I cannot find either of these values now.

---

<div class="post-metadata">

**Author:** ![remy727](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/remy727/32/22340_2.png) [@remy727](https://community.shopify.dev/u/remy727)\
**Post date:** [March 21, 2025, 6:18am UTC](https://community.shopify.dev/t/graphql-query-rest-migration/11737/2 "2025-03-21T06:18:24Z")

</div>

There is `customAttributes` field in `order` object and that’s `Note_Attributes`.  
You can get `ShippingLines.code` and `customAttributes` in GraphQL:

```graphql
query ($id: ID!) {
  order(id: $id) {
    id
    customAttributes {
      key
      value
    }
    shippingLines(first: 5) {
      edges {
        node {
          code
        }
        }
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![Arthur\_Harrison](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Arthur\_Harrison](https://community.shopify.dev/u/Arthur_Harrison)\
**Post date:** [March 24, 2025, 2:11am UTC](https://community.shopify.dev/t/graphql-query-rest-migration/11737/3 "2025-03-24T02:11:13Z")

</div>

Remy727,

Thanks for that just what I needed.

Arthur
