Skip to content

Action event counts

Use dispatchActionStatus to obtain action counts for various events and whether the logged in user performed the action.

Query

query {
    dispatchActionStatus(
        org: "<Org Id>", 
        id: "<Dispatch Id>", 
        events:["like", "view", "bookmark"]) {
        event
        count
        selfAction
    }
}

Response

{
    "data": {
        "dispatchActionStatus": [
            {
                "event": "like",
                "count": 3,
                "selfAction": "2021-06-17T15:15:55.000+09:00"
            },
            {
                "event": "view",
                "count": 0,
                "selfAction": null
            },
            {
                "event": "bookmark",
                "count": 1,
                "selfAction": "2021-06-17T15:15:56.000+09:00"
            }
        ]
    }
}