Does payloadcms provide any migration tools? #857
-
just like contentful-migration. Planning to migrate from contentful to payloadcms |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey @zhounewz — thanks for the question! Right now, because Payload has a very powerful Local Node API, you can write migration scripts in your code very easily. As long as you can export content from Contentful in JSON or similar, you can then loop over that content in a script, and for each doc, create a doc within Payload using the local API. It's pretty easy! |
Beta Was this translation helpful? Give feedback.
-
I made a sample repo that has migrations inside a Payload project using I'll write a blog post about it and depending on reception, it could be added to the Payload docs. |
Beta Was this translation helpful? Give feedback.
Hey @zhounewz — thanks for the question!
Right now, because Payload has a very powerful Local Node API, you can write migration scripts in your code very easily. As long as you can export content from Contentful in JSON or similar, you can then loop over that content in a script, and for each doc, create a doc within Payload using the local API. It's pretty easy!