- Setup your database
- Start the server
bun dev
- Open your browser and go to
http://localhost:3000/graphql
- 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
}
}