Skip to content

Error thrown in createUser: 'TypeError: (intermediate value).insert is not a function' #3

@robinleboe-sw

Description

@robinleboe-sw

This line throws the error:
... const user = await (await Users()).insert(newUser); ...

Replace insert(newUser) with insertOne(newUser) to eliminate the error.

... const user = await (await Users()).insertOne(newUser); ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions