We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it appears that fetch doesn't work with the count flag.
karras/src/karras/collection.clj
Line 144 in 0ed5292
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.
The text was updated successfully, but these errors were encountered:
that's weird since count-instances ultimately uses (karras.collection/fetch coll criteria :count true)
(karras.collection/fetch coll criteria :count true)
Maybe karras.entity/fetch is broken. I'll look into it.
Sorry, something went wrong.
you're right. karras.entity/fetch is trying to map (partial make type) over the count.
Ah, I need to beef up the tests. Use count-instances in the mean time.
No branches or pull requests
it appears that fetch doesn't work with the count flag.
karras/src/karras/collection.clj
Line 144 in 0ed5292
i tried this:
i got back:
this however works fine:
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.
The text was updated successfully, but these errors were encountered: