orbis.getNotifications()
Returns an array of notifications
received by the connected user. The user must be connected for this query to work.
How to use?
let { data, error } = await orbis.getNotifications();
Parameters
options
: A JSON object with the parameters used to retrieve notificationstype
: Must besocial
,social_in_context
ormessages
Examples
/** To query the feed notifications (mentions, likes, replies etc) for the connected user */
orbis.getNotifications({ type: 'social' });