This mutation to save the user session information
Sample mutation
mutation saveUserSession($userSessionInput: UserSessionInput!) {
saveUserSession(userSessionInput: $userSessionInput) {
id
userOrganizationID
userID
eventType
sessionType
customerIp
ipType
countryName
region
city
zip
latitude
longitude
deviceType
browserType
}
}
Sample variable
{
"userSessionInput": {
"organizationID": "5eb26a32-2a2f-4f4a-88fa-e92fad02b67d",
"eventType": "LOGIN",
"sessionType": "JWT",
"customerIp": "2409:40f4:af:e081:8c0:85fd:a569:611",
"ipType": "IPv6",
"countryName": "USA",
"region": "California",
"city": "Los Angeles",
"zip": "90001",
"latitude": "36.7783",
"latitude": "119.4179",
"deviceType": "Web",
"browserType": "Chrome"
}
}
Sample response
{
"data": {
"saveUserSession": {
"id": "18021bf4-d96d-4359-b062-6e94cf2fcb04",
"userOrganizationID": "559dbe3e-a948-4af2-b5c3-e2d02e56d025",
"userOrganization": null,
"userID": "e877b5df-00ce-4825-9c50-9b9e53a15b25",
"user": null,
"eventType": "LOGIN",
"sessionType": "JWT",
"customerIp": "2409:40f4:af:e081:8c0:85fd:a569:611",
"ipType": "IPv6",
"countryName": "USA",
"region": "California",
"city": "Los Angeles",
"zip": "90001",
"latitude": 36.7783,
"longitude": 119.4179,
"deviceType": "WEB",
"browserType": "Chrome"
}
}
}
Arguments
Name | Type | Description |
---|---|---|
userSessionInput | Object | Contains all information of userSessionInput information input |
Feilds
Name | Type | Description |
---|---|---|
UserSession | Object | Contains all information of UserSession information |