
Sanity.io to Builder.io Data Transfer
Original: https://codingcat.dev/post/sanity-io-to-builder-io-data-transfer I am hoping to make a Sanity.io plugin for builder. In doing so I thought I would write a little conversion tool before hand to figure out all the ins and outs of Builder.io and Sanity.io, so I thought I would share some of my findings. I will keep this tutorial updated as the plugin progresses. The repo example has three things that you might find useful. Deleting All Data Creating all new types Adding all new Data Repo for conversion example https://github.com/CodingCatDev/sanity-to-builder.git Deleting All Data https://github.com/CodingCatDev/sanity-to-builder/blob/84d8b5d436b2d674f916670317cb48de916c8a68/src/index.ts#L175 In order to delete all the data you need to first find all the models you want to delete Get all Models from Builder (even unpublished) In sanity you deal with things like draft. in documents. In Builder these items are just known to be unpublished version. So you need to have includeUnpubl
Continue reading on Dev.to Webdev
Opens in a new tab




