Skip to content

Instantly share code, notes, and snippets.

@dupski
Last active May 19, 2018 23:55
Show Gist options
  • Save dupski/b9d0a97e278f7665581566e7a1fe0cc0 to your computer and use it in GitHub Desktop.
Save dupski/b9d0a97e278f7665581566e7a1fe0cc0 to your computer and use it in GitHub Desktop.
Create a GraphQl API in 5 minutes - load demo data
import { createDemoData } from './models';
...
console.log(`Server is running at http://localhost:${config.port}/`);
createDemoData().then(() => {
console.log('Demo Data Loaded!')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment