mutation {
createUser(input: { email: "foo@bar.de", name: "foo" }) {
id
}
}
After you executed the query in the playground you have to open another tab to create users.
subscription {
userAdded {
id
}
}
{
getUserByEmail(email: "foo@bar.de") {
name
}
}
{
getUserById(id: 1) {
name
}
}