Skip to content

Instantly share code, notes, and snippets.

@radzserg
Last active October 4, 2019 13:31
Show Gist options
  • Select an option

  • Save radzserg/eecbf5cbc004839f1eb3ca6569896419 to your computer and use it in GitHub Desktop.

Select an option

Save radzserg/eecbf5cbc004839f1eb3ca6569896419 to your computer and use it in GitHub Desktop.
await knex("users").insert(DataGenerator.user({id: 2}));
await knex("posts").insert(DataGenerator.post({id: 2, user_id: 2, title: "Title 2"}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment