Skip to content

Create and Update don't work with non-numeric and/or primary keys #12

Closed
@johngrogg

Description

@johngrogg

When a resource uses a primary key that is non numeric (knex converts the string into 0 for the promise's resolution).

To help with this, if the id is being passed in with the attrs, then use that instead of the promise's results.

Also, in postgresql you need to pass the id column's name in with the insert to have the ids array be populated.

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