Skip to content

Latest commit

 

History

History
46 lines (42 loc) · 604 Bytes

README.md

File metadata and controls

46 lines (42 loc) · 604 Bytes
  1. Setup your database
  2. Start the server bun dev
  3. Open your browser and go to http://localhost:3000/graphql
  4. Start querying your data
query Users {
  users {
    id
    name
    roles
  }
}

mutation CreateUser {
  userCreate(
    data: {
      name: "Nico"
      email: "[email protected]"
      password: "password"
      roles: [admin]
    }
  ) {
    id
    name
    password
    createdAt
    updatedAt
  }
}

mutation login {
  userLogin(email: "[email protected]", password: "password") {
    token
    user {
      id
    }
  }
}

query me {
  me {
    id
  }
}