Title: Save many metafields with a single request · Issue #112 · Shopify/shopify_python_api · GitHub
Open Graph Title: Save many metafields with a single request · Issue #112 · Shopify/shopify_python_api
X Title: Save many metafields with a single request · Issue #112 · Shopify/shopify_python_api
Description: There does not seem to be a way to attach metafields locally, and then simply save the product with the metafields along with it. I'm forced to use add_metafields() or Metafield().save(), both of which adds a single metafield per API cal...
Open Graph Description: There does not seem to be a way to attach metafields locally, and then simply save the product with the metafields along with it. I'm forced to use add_metafields() or Metafield().save(), both of w...
X Description: There does not seem to be a way to attach metafields locally, and then simply save the product with the metafields along with it. I'm forced to use add_metafields() or Metafield().save(), both ...
Opengraph URL: https://github.com/Shopify/shopify_python_api/issues/112
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Save many metafields with a single request","articleBody":"There does not seem to be a way to attach metafields locally, and then simply save the product with the metafields along with it. I'm forced to use add_metafields() or Metafield().save(), both of which adds a single metafield per API call. This is very slow.\n\nIf I take a product with 50 metafields, and save it as a new product, it saves almost instantly, like so:\n\n``` python\np = shopify.Product.find()[0]\nprint len(p.metafields())\n\u003e 50\np.id = None\np.images = None\np.save()\n```\n\nHow can I attach metafields to a product in the same way they are attached when they are fetched?\n","author":{"url":"https://github.com/flux627","@type":"Person","name":"flux627"},"datePublished":"2015-09-13T08:47:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/112/shopify_python_api/issues/112"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:754eb05a-7d7f-b47f-a495-31b7ab60189e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 960E:3654CA:7E66349:A71A54E:696DEFB4 |
| html-safe-nonce | 486c5279fe328408cf4d7596ca6aecab49bc190560b20dbcec96f67bbf601733 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjBFOjM2NTRDQTo3RTY2MzQ5OkE3MUE1NEU6Njk2REVGQjQiLCJ2aXNpdG9yX2lkIjoiNjczMzgwNjYwMjExODA5ODg2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b5ffbc5684d16842b6354ae7ad53b73c61f7ee72a5f88f8c9480250b354ab31f |
| hovercard-subject-tag | issue:106205522 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Shopify/shopify_python_api/112/issue_layout |
| twitter:image | https://avatars.githubusercontent.com/u/8085?s=400&v=4 |
| twitter:card | summary |
| og:image | https://avatars.githubusercontent.com/u/8085?s=400&v=4 |
| og:image:alt | There does not seem to be a way to attach metafields locally, and then simply save the product with the metafields along with it. I'm forced to use add_metafields() or Metafield().save(), both of w... |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | flux627 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/Shopify/shopify_python_api git https://github.com/Shopify/shopify_python_api.git |
| octolytics-dimension-user_id | 8085 |
| octolytics-dimension-user_login | Shopify |
| octolytics-dimension-repository_id | 2249127 |
| octolytics-dimension-repository_nwo | Shopify/shopify_python_api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2249127 |
| octolytics-dimension-repository_network_root_nwo | Shopify/shopify_python_api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width