Has anyone had success migrating data following th...
# prisma-whats-new
c
Has anyone had success migrating data following the tutorial on the site?
n
@chicagoboy2011 I've talked to a few, are you stuck with something? let us know so we can help out 👍
c
Hey nilan, thanks for the reply - yes I was, but it turns out it was a malformed JSON that I was using; a subset of the data worked out great. I might have some questions later as I progress. Also, I had to add
main();
at the end of the node scripts so it would execute the function, which is the only thing that differed from the instructions. Also as I was getting node the options were either 6.4 or 8.0, and with 8.0 the async flag is unnecessary. Thanks for all the great documentation!
n
Great to hear the guide could be of help 🙂
Hm I quickly checked all code examples in this repo and all had a
main
statement at the end: https://github.com/graphcool-examples/node-import-movies-example
c
Ok, I must have definitely been too sleepy when I got to it last night -- you are absolutely right! Sorry 😞
n
Huh, let me check the written guides as well 🙂
yea so the
main
statement is not explicitely mentioned there, that's what probably confused you