Skip to content

:count in karras.collections/fetch is broken. #4

@bhenry

Description

@bhenry

it appears that fetch doesn't work with the count flag.

i tried this:

(fetch Client nil :count true) ;;it was inside with-mongo-request

i got back:

java.lang.IllegalArgumentException: Don't know how to create ISeq from: java.lang.Integer
[Thrown class java.lang.RuntimeException]

this however works fine:

(fetch Client nil :limit 1)

NOTE: I ended up using karras.entity/count-instances, but didn't know if the above was expected to work as it is still in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions