Skip to content

Doesn't work.... stringify not called on create #52

@brandoncollins7

Description

@brandoncollins7

I have tagged my json column but when I save a new record, the stringify code does not get executed and my object is persisted as [object object]. What is supposed to be calling stringify?

When the same method of this library is called it returns at:

// Only handle arguments withpatchoption. if (!options.patch) { return Model.save.apply(this, arguments); }
https://github.com/seegno/bookshelf-json-columns/blob/master/dist/index.js#L100

and stringify is never called. Seems to call parse ok when I am fetching, but no stringify when I am creating.

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