Skip to content

result.total type is string in postgres #108

Closed

Description

@abemedia

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions