Skip to content

Api addition request Model.create( objectOrArr, cb ) #159

Description

@fjenett

Hey, i keep running into the same problem which takes me forever to find the reason for. What i do is i accidentally pass only one object (not an array with one object) into Model.create() ... the callback has no error but the results variable is empty.

I guess most of the cases people will want to create only one item, so i propose to allow for the API to be:

Model.create( objectOrArray, cb )

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions