Skip to content
New issue

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

result.total type is string in postgres #108

Closed
abemedia opened this issue Jul 21, 2017 · 0 comments
Closed

result.total type is string in postgres #108

abemedia opened this issue Jul 21, 2017 · 0 comments

Comments

@abemedia
Copy link

Steps to reproduce

Create a feathers-knex service using postgres and run the find method.

myFeathersKnexService.find({ query: { [field]: value } })
  .then(result => {
    console.log(result.total);
  });

Expected behavior

Returns an integer (e.g. 0)

Actual behavior

Returns a string (e.g. '0')

System configuration

Module versions:
feathers-knex: 2.7.0
knex: 0.13.0
pg: 7.0.1

NodeJS version: v6.11.1

Operating System: Alpine Linux 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant