codepunkt
07/06/2018, 9:42 AMmutation seed {
createUser(data: { username: "Foo" }) { id }
createUser(data: { username: "Bar" }) { id }
}
There is no createMany. I could split it into multiple mutations, but then i can run only one of them by name. How do i do this?
Edit:
Okay, 2 more minutes of searching would have sufficed. Found it in one of the examples:
mutation seed {
user1: createUser(data: { username: "Foo" }) { id }
user2: createUser(data: { username: "Bar" }) { id }
}
weakky
07/06/2018, 9:44 AM