How to call admin rest api and graphql to get and post metafields?

How to call admin rest api and graphql to get and post metafields?

opencartcity
Tourist
7 0 3

Hello,

How can we use the rest api and graph ql to get and post metafields. We are using node. Can any one share some examples?

Thanks!

Reply 1 (1)

Luke_K
Shopify Staff
402 66 102

Hey @opencartcity 

There's a Node Library here available that would allow you to access the Metafields resource on Shopify's Admin API.

You might like to check out the GraphQL Metafield documentation here. Additionally there's a great run through regarding the GraphQL Metafields here.

The REST API documentation for Metafields is here.  Hope that helps!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!