From cd0b07b3adb36fb5ec098f9e511ab45d774fee7b Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 30 Jan 2018 12:41:01 -0500 Subject: Move to Prisma Backend --- backend/database/seed.graphql | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 backend/database/seed.graphql (limited to 'backend/database/seed.graphql') diff --git a/backend/database/seed.graphql b/backend/database/seed.graphql new file mode 100644 index 0000000..5779328 --- /dev/null +++ b/backend/database/seed.graphql @@ -0,0 +1,24 @@ +mutation { + createUser(data: { + email: "developer@example.com" + password: "$2a$10$hACwQ5/HQI6FhbIISOUVeusy3sKyUDhSq36fF5d/54aAdiygJPFzm" # plaintext password: "nooneknows" + name: "Sarah" + posts: { + create: [{ + title: "Hello World" + text: "This is my first blog post ever!" + isPublished: true + }, { + title: "My Second Post" + text: "My first post was good, but this one is better!" + isPublished: true + }, { + title: "Solving World Hunger" + text: "This is a draft..." + isPublished: false + }] + } + }) { + id + } +} \ No newline at end of file -- cgit v1.3