query {
findAll {
id name age email phone
}
}
query {
findById(id: "e0a8b6db-fdba-4546-98ce-e3cc973120f9") {
id name age email phone
}
}
mutation {
insert(name: "João", age: 25, email: "[email protected]", phone: "11987654321") {
id name age email phone
}
}
mutation {
update(id: "e0a8b6db-fdba-4546-98ce-e3cc973120f9", name: "Pedrovisk" age:32, email: "[email protected]", phone: "11999999999") {
id name age email phone
}
}
mutation {
delete(id: "e0a8b6db-fdba-4546-98ce-e3cc973120f9")
}
Executing Docker compose and accessing Redis bash:
docker compose up -d
docker exec -it cache-redis sh
redis-cli
keys * = view keys created
get [key]::[value] = get serializable content. ex: get employees::e0a8b6db-fdba-4546-98ce-e3cc973120f9