Fixed report seeding

This commit is contained in:
Grzegorz Leoniec 2019-01-18 11:22:44 +01:00
parent 8b20f447f3
commit 4c265bf3b8
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -1,26 +1,26 @@
export default function (data) {
return `
mutation {
r1: CreateReport(id: "r1", description: "Bad Stuff") {
r1: CreateReport(id: "r1", type: contribution, description: "Bad Stuff") {
id
}
r2: CreateReport(id: "r2", description: "Please remove this sh**") {
r2: CreateReport(id: "r2", type: comment, description: "Please remove this sh**") {
id
}
r3: CreateReport(id: "r3", description: "The user have misbehaved!") {
r3: CreateReport(id: "r3", type: user, description: "The user have misbehaved!") {
id
}
ra1: AddReportAuthor(from: { id: "u1" }, to: { id: "r1" }) {
ra1: AddReportReporter(from: { id: "u1" }, to: { id: "r1" }) {
from {
id
}
}
ra2: AddReportAuthor(from: { id: "u2" }, to: { id: "r2" }) {
ra2: AddReportReporter(from: { id: "u2" }, to: { id: "r2" }) {
from {
id
}
}
ra3: AddReportAuthor(from: { id: "u3" }, to: { id: "r3" }) {
ra3: AddReportReporter(from: { id: "u3" }, to: { id: "r3" }) {
from {
id
}