electerious / Ackee

Self-hosted, Node.js based analytics tool for those who care about privacy.
https://ackee.electerious.com
MIT License
4.27k stars 359 forks source link

Query event actions via GraphQL #247

Open ThomasOrlita opened 3 years ago

ThomasOrlita commented 3 years ago

Would it be possible to query all actions of an event?

Something like:

query getEventWithActions($eventId: ID!) {
    event(id: $eventId) {
        id
        title
        actions() {
            id
            key
            value
        }
    }
}

which would return the event details with a list of its actions.

electerious commented 3 years ago

It's currently not possible, but it would be a helpful feature for tools using the API. I would like to see the same for records.

If someone wants to create a PR: This needs to be a cursor based paginated list, because of the amount of items and because the number of items is constantly growing. A offset based pagination wouldn't work.