
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGood news - Sanity Studio has built-in copy/paste functionality for array fields that makes this pretty straightforward!
Sanity Studio supports native copy/paste operations for array fields. Here's how:
This works for entire arrays or individual array items. You can even copy items between different document types as long as the field structures are compatible.
If you need to copy arrays between many products or automate the process, you can use the Sanity Client:
import {createClient} from '@sanity/client'
const client = createClient({
projectId: 'your-project-id',
dataset: 'your-dataset',
token: 'your-token-with-write-access',
apiVersion: '2025-02-19'
})
// Get the source product
const sourceProduct = await client.getDocument('source-product-id')
// Copy the array to the destination product
await client
.patch('destination-product-id')
.set({ yourArrayFieldName: sourceProduct.yourArrayFieldName })
.commit()If you need to copy between different datasets or projects, check out the Cross Dataset Duplicator plugin which handles migration of documents and assets between Sanity projects directly from Studio.
The built-in copy/paste is definitely your quickest option for one-off copies!
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store