Skip to content

Factory & Simple-Schema – ID is required #22

@Infinitism

Description

@Infinitism

Hi,

I'm using meteor factory to create documents for testing and whenever I try to .create('something') whose collection has a schema attached to it, I get an error "ID is required" on insert from the Factory.

I see that SimpleSchema is getting called on insert so I called .create('something', {_id: Random.id()}) and still get the same error.

Is there a way to use this package with collections that have schemas attached to it?

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