0

I am trying to access shopify product metafields same like products getting with rest-api and also i am using shopify-api npm package to get metafields but we are receing empty metafields array

enter image description here

enter image description here Please help me to resolve that..

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Jan 15, 2022 at 7:40

1 Answer 1

0

There are a couple of potential reasons. One, perhaps that product actually has no metafields. Or two, perhaps your API has no permission to read the metafields assigned to the product.

A sure fire way for you to establish if your code is working or not, is to use your API key to write a metafield. Verify it exists. Then use your code to read the metafield you created. With that, you know your code is working.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.