javascriptdummy-data

Generate fake data that doesn't change


I'm creating a temporary GraphQL backend, that should serve mocked data.

E.g. I need ~500 objects of the model Person (with firstName, lastName, email, country, etc), where the properties shouldn't change on each request.

Is there any library where it's possible to get fake data always created in the same order?


Solution

  • You can easily create your custom JSON with https://next.json-generator.com/ which allows using internal scripts for data generation

    Here is an example of generating a list of names: https://next.json-generator.com/Vk95XL5mv