Skip to content

Type safety of created document #787

@epicmet

Description

@epicmet

I'm using ottoman v2.5.0

Can I ask what is this line about?

In my case it messes up with the type safety of the newly created document.

const doc = new MyModel({ foo: "bar" });
doc.save(); // There is no method `save`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions