---
# System prepended metadata

title: Notifications
tags: [subscription, ' notifications']

---

---
title: Notifications
tags: subscription, notifications
---



---


### Get user general notifications
**Request**

```
subscription getUserNotifications {
  
}
```

**Fields**

```
startedBy: User id of the recruiter that started this thread
jobPostId: Id of the job post
```




## User

**read**

```
query MyQuery {
  userNotifications(order_by: {created_at: asc}, 
    where: {user_id: {_eq: "---UUID---"}}) {
    id
    user_id
    org_id
    isOrganizationNotification
    artifact
    typeOfNotification
    read
    created_at
    updated_at
  }
}

```

**update**
```
mutation MyMutation {
  update_userNotifications
  (where: {id: {_eq: null}}, _set: {read: true}) {
    affected_rows
  }
}
```

**Delete**
```
mutation MyMutation {
  delete_userNotifications(where: {id: {_eq: null}}) {
    affected_rows
  }
}
```



## CC

**Read**
```
query MyQuery {
  ccNotifications(order_by: {created_at: asc}, 
    where: {user_id: {_eq: "---UUID---"}}) {
    id
    typeOfNotification
    artifact
    role
    read
    created_at
    updated_at
  }
}

```

**Update**
```
mutation MyMutation {
  update_ccNotifications(where: {id: {_eq: null}}, _set: {read: false}) {
    affected_rows
  }
}
```

**Delete**
```
mutation MyMutation {
  delete_ccNotifications(where: {id: {_eq: null}}) {
    affected_rows
  }
}

```