Skip to content

insertGraph accepts empty array and performs a noop without throwing, other graph methods throw TypeError #1109

@capaj

Description

@capaj

when I call

MyModel.query().insertGraph([])

it works as noop, but these fail with TypeError: Cannot read property 'constructor' of undefined

MyModel.query().insertGraphAndFetch([])
MyModel.query().upsertGraph([])
MyModel.query().upsertGraphAndFetch([])

tried with 1.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions