Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 490 Bytes

demo.md

File metadata and controls

41 lines (33 loc) · 490 Bytes

Create a User

mutation {
  createUser(input: { email: "foo@bar.de", name: "foo" }) {
    id
  }
}

Listen on userAdded Events in realtime

After you executed the query in the playground you have to open another tab to create users.

subscription {
  userAdded {
    id
  }
}

Receive a single User by Email

{
  getUserByEmail(email: "foo@bar.de") {
    name
  }
}

Receive a single User by Id

{
  getUserById(id: 1) {
    name
  }
}