--- 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 } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up