Any recommendations for nice ways of populating gr...
# prisma-whats-new
d
Any recommendations for nice ways of populating graphcool w/ random user data?
n
@dk0r I'd setup a script that creates some new data 🙂
i
@nilan i'd take a script writing course from you any day you offer it.
@nilan i just spent a day refactoring your examples script mostly so i could learn from the structure.
d
@idkjsx I'm working through the learnapollo.com tutorials and hoping I'll pick up enough from there to write the scripts nilan mentioned
n
@idkjsx are you saying the example scripts is unstructured? how can we improve that? 🙂
i
@dk0r you will not in my opinion. You will pick up all kinds of tidbits but not that.
@nilan if it was unstructured, I would not want to learn it from you. It was nice. I learned alot. Didnt have to stick with it but just needed to understand every line.
d
@idkjsx oh, ok. Do you have any recommendations for learning to do so then? I would imagine that we would just loop through a mutation as many times as we want entries. And in each mutation loop you assign random data to the field you want to generate. No?
n
ah gotcha! thanks for the clarification @idkjsx. thanks for your PRs as well 😄
👍🏾 1
@dk0r, that's pretty much it.
i
@dk0r scripts are javascript. so at that point, there is no more cutting and pasting.
d
I'm planning to use https://randomuser.me so that I can generate unique data for each field inside the mutations
@idkjsx ...right?
i
that works.
d
I'm not really following what you mean though
i
to get a dataset to mess around with.
d
you're suggesting that the barrier to entry is having to write our own code?!
well anyways, thanks for the mockaroo link --I'll check it out