User Queries
getCurrentUser
⮩ User- Operation
- Response
query GetCurrentUser {
getCurrentUser {
id
fullName
username
email
role
createdAt
updatedAt
}
}
{
"data": {
"getCurrentUser": {
"id": "6301eab3fb94b55057a9527d",
"fullName": "Devesh K",
"username": "dev",
"email": "dev1234@dev1234.com",
"role": "ADMIN",
"createdAt": "1661070003279",
"updatedAt": "1661970149983"
}
}
}
getAllUsers(currentPageNumber, limitValue)
limitValue
⟹ Int
currentPageNumber
⟹ Int
⮩ Paginated User- Operation
- Variables
- Response
query GetAllUsers($currentPageNumber: Int!, $limitValue: Int!) {
getAllUsers(currentPageNumber: $currentPageNumber, limitValue: $limitValue) {
users {
id
fullName
username
email
role
createdAt
updatedAt
}
totalUsers
}
}
{
"currentPageNumber": 1,
"limitValue": 20
}
{
"data": {
"getAllUsers": {
"users": [
{
"id": "631099369b51eef3ba27fe09",
"fullName": "Joanny Boyer",
"username": "Izaiah_Wehner39",
"email": "lonny_ryan88@hotmail.com",
"role": "MODERATOR",
"createdAt": "1649116735446",
"updatedAt": "1662032182272"
},
{
"id": "631099369b51eef3ba27fe0a",
"fullName": "Sister Franecki",
"username": "Yolanda.Farrell24",
"email": "annabell93@gmail.com",
"role": "USER",
"createdAt": "1649657242702",
"updatedAt": "1662032182272"
},
{
"id": "631099369b51eef3ba27fe0b",
"fullName": "Eve Von",
"username": "Hosea.Gottlieb45",
"email": "marina0@gmail.com",
"role": "MODERATOR",
"createdAt": "1646894956159",
"updatedAt": "1662032182272"
},
{
"id": "631099369b51eef3ba27fe0c",
"fullName": "Savion Bruen",
"username": "Donna_Mosciski22",
"email": "alfreda_fahey@yahoo.com",
"role": "USER",
"createdAt": "1640060294295",
"updatedAt": "1662032182272"
}
],
"totalUsers": 4
}
}
}