Skip to content

Ability to retrieve total count of a resource #10

@amoe

Description

@amoe

I wanted to retrieve the total count of customers. According to the documentation for the upstream Stripe API,

You can optionally request that the response include the total count of all
customers that match your filters. To do so, specify include[]=total_count in
your request.

However, I couldn't figure out if this is possible using Elephant and the clojurewerkz.elephant.customers/list function. I tried using (ecr/list {"include[]" "total_count"}) but, as the result is always a plain sequence of customer maps, the count was not accessible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions