How to Migrate Data From Craft CMS Commerce Website to Sanity

4 replies
Last updated: Aug 16, 2020
I need to migrate data from a Craft cms commerce website to sanity which is the best way todo this ?
Hi
user B
! Check out this guide and see if that makes sense to you https://www.sanity.io/guides/guide-importing-data-from-external-sources
I'm copy pasting manually from WordPress. To be fair, i only have about 60 posts πŸ˜„
Copying manually is one approach, but this is an e-commerce site with more than 240 product entries and hundreds of product variants which could be a little longwinded , would it be possible to link through GraphQL and transfer data that way ?
user B
AFAIK there no way to import via graphql. Either you need to export your data to ndjson and use the cli to import, or write an import script as described in the guide above.Also see more here:
https://www.sanity.io/docs/importing-data

Sanity – Build the way you think, not the way your CMS thinks

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.

Was this answer helpful?