First enable docker on your machine; then run the following command:
npm ci
npm run infra:up
npm run db:migrate
npm run dev
You can find the graphQL UI at: http://localhost:3000/graphiql
And here are some queries you can try:
query Users {
getUsers {
id
name
surname
status
registrationHistory {
status
eventAt
}
}
}
mutation CreateUser {
createUser(user: { name: "Test name", surname: "Test surname" }) {
id
name
surname
status
}
}
mutation ApproveUser {
approveUser(userId: "1") {
id
name
surname
status
registrationHistory {
status
eventAt
}
}
}
mutation RejectUser {
rejectUser(userId: "7") {
id
name
surname
status
registrationHistory {
status
eventAt
}
}
}