sanity-plugin-shopify-assets
2.0.202.1.0
README.md~
README.mdModified+20
Index: package/README.md
===================================================================
--- package/README.md
+++ package/README.md
@@ -56,8 +56,28 @@
}
}),
```
+Asset requests use the active Studio dataset unless you set `dataset`. Use this when the workspace edits a different dataset from the one Sanity Connect syncs with Shopify. A field-level `dataset` overrides the plugin value. Other fields keep the plugin value, or the active Studio dataset when the plugin does not set one.
+
+```ts
+shopifyAssets({
+ shopifyDomain: '*.myshopify.com',
+ dataset: 'production',
+})
+```
+
+```ts
+defineField({
+ type: 'shopify.asset',
+ name: 'shopifyAsset',
+ options: {
+ shopifyDomain: '*.myshopify.com',
+ dataset: 'production',
+ },
+})
+```
+
## Example of resulting object
```jsonc
{